Code:
while (vec_dist (my.x, my_target.x) > 50) 
{
c_move (my, vector(20 * time_step, 0, 0), nullvector, GLIDE);
ent_animate(my, "run", run_percentage, ANM_CYCLE); 
run_percentage += 6 * time_step; 
wait(1); 
}
my.skill99 = 0;
while (my.skill99 < my_target.skill1)
{
my.status = attacking; 
wait(1);
}



He cannot die because you don't check health > 0 in the loop condition.

Do you increase skill99 somewhere? Otherwise the second loop will be infinite.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends