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
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