J
jaigantor
Guest
hey, enemy pathing is crashing the game whenever the player dies here's the code:
if object_exists(o_player){
if point_distance(x,y,o_player.x,o_player.y) < 400{
Path_to_player();
}
}else if (!object_exists(o_player)){
if (path_exists(path)){
path_delete(path);
}
}
alarm[0] = room_speed;
it's giving me the error on line 3
Path_to_player(); is just the script for the enemy pathing
if object_exists(o_player){
if point_distance(x,y,o_player.x,o_player.y) < 400{
Path_to_player();
}
}else if (!object_exists(o_player)){
if (path_exists(path)){
path_delete(path);
}
}
alarm[0] = room_speed;
it's giving me the error on line 3
Path_to_player(); is just the script for the enemy pathing