Código: Selecionar todos
if (mp_grid_path(global.grid, path, x, y, obj_player.x, obj_player.y, 1)){
path_start(path, 4, path_action_stop, false);
}
tô tendo o seguinte erro (na primeira linha do código acima)
Código: Selecionar todos
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_enemy:
global variable <unknown built-in variable>(-1610512736, -2147483648) not set before reading it.
at gml_Object_obj_enemy_StepNormalEvent_1 (line 8) - if (mp_grid_path(global.grid, path, x, y, obj_player.x, obj_player.y, 1)){
############################################################################################