Is there a way to fix this? It doesn't happen all the time but very often, sometime the animations are normal depending on if I press the key of the direction I want my character to move twice in a row but it's kinda annoying...
Please help me!
direct = 1;direct = 2;if (direct == 1)
{
ChangeAnimation("Event Actor", "right", NO_CHANGE);
actor.x=actor.x + 5;
}
if (direct == 2)
{
ChangeAnimation("Event Actor", "left", NO_CHANGE);
actor.x = actor.x - 5;
}
if (direct == 0)
{
ChangeAnimationDirection("Event Actor", STOPPED);
animpos = 0;
}direct = 0;direct _____ ________
(_____)(_______/
_ ____ ____ _ _ ___
| | (___ \ / _ || | | | /___)
___| | _____) )( ( | || |_| ||___ |_
(____/ (______/ \_|| | \____|(___/(_)
(_____|
_____ ________
(_____)(_______/
_ ____ ____ _ _ ___
| | (___ \ / _ || | | | /___)
___| | _____) )( ( | || |_| ||___ |_
(____/ (______/ \_|| | \____|(___/(_)
(_____|
_____ ________
(_____)(_______/
_ ____ ____ _ _ ___
| | (___ \ / _ || | | | /___)
___| | _____) )( ( | || |_| ||___ |_
(____/ (______/ \_|| | \____|(___/(_)
(_____|
_____ ________
(_____)(_______/
_ ____ ____ _ _ ___
| | (___ \ / _ || | | | /___)
___| | _____) )( ( | || |_| ||___ |_
(____/ (______/ \_|| | \____|(___/(_)
(_____|
Users browsing this forum: Google [Bot] and 0 guests