Re: actor n background

Posted:
Mon Jun 25, 2012 5:09 pm
by skydereign
I assume you have a keydown event set to repeat, and the following code.
- Code: Select all
ChangeAnimation("Event Actor", "run_right", FORWARD);
The problem with that is when you change the animation with the state set to FORWARD, it will reset the animation to the first frame. To avoid this, you can just change FORWARD to NO_CHANGE.
Re: actor n background

Posted:
Tue Jun 26, 2012 9:51 am
by dzuncoi
But in the moonwalk demo i found in this forum, i try to change from NO_CHANGE to FORWARD it still works, is there anything different between my animation with the moonwalk's animation ?
Re: actor n background

Posted:
Tue Jun 26, 2012 4:16 pm
by skydereign
If you followed the anti-moonwalk state method version, then you'll need to post your code, since it should work if you followed it correctly. In fact the state method should use FORWARD, since the code in the switch only triggers once. But the symptom you are reporting looks a lot like the ChangeAnimation code is running every frame, which means the solution would be either to implement the state method correctly, and/or set the state to NO_CHANGE. It doesn't look like that ged has much in it, upload it if you are still having problems, and I can take a look at what isn't working.