• Hey! Guest! The 37th GMC Jam will take place between May 28th, 12:00 UTC and June 1st, 12:00 UTC. Why not join in! Click here to find out more!

Image_speed with paths

Halph-Price

Member
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
 

icuurd12b42

TMC Founder
GMC Elder
how about simply set the image_index off of path_position
image_speed = 0;
image_index = path_position * 100;
 
Top