Image_speed with paths

H

Halph-Price

Guest
So I was trying to animate when using paths:

if xprevious!=x and yprevious!=y //when moving
{
image_speed=2
}else{
image_speed=0
if PrevDir!=direction //when turning
{image_speed=2}
PrevDir=direction
}

Because I can't detect the objects speed or hspeed or whatever when it's moving along the path.

It doesn't animate when moving horizontally or vertically. When It turns it animates and on the diagonals, I assume for the same reason.

Am I doing something wrong, or is there a better way to animate movement during movement with mp_grid_path? I don't see any options to detect speed when moving along a path. I am open to any suggestions.

Thanks for the time
 
I

icuurd12b42

Guest
how about simply set the image_index off of path_position
image_speed = 0;
image_index = path_position * 100;
 
H

Halph-Price

Guest
how about simply set the image_index off of path_position
image_speed = 0;
image_index = path_position * 100;
HOLY COW that works really good with adjusting the multiplier. Perfect, thank you.
 
Top