Cita de: romon_28 en Enero 22, 2015, 02:55:32 PM
A lo mejor tendría que buscar el enemigo más próximoCódigo [Seleccionar]if instance_exists(obj_boss)
{
var Id = instance_nearest(x,y,obj_boss);
mp_potential_step(Id.x, obj_Id.y , velocidad,false);
}
else
{
if instance_exists(obj_parente_enemigos)
{
var Id = instance_nearest(x,y,obj_parente_enemigos);
mp_potential_step(Id.x, obj_Id.y , velocidad,false);
}
}
Perdona mi ignorancia, pero nunca he tocado esto de las variables y no se que poner en "Id" y "obj_Id", gracias por responderme! :)