actor n background

Non-platform specific questions.

Re: actor n background

Postby skydereign » Mon Jun 25, 2012 5:09 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: actor n background

Postby dzuncoi » Tue Jun 26, 2012 9:51 am

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 ?
dzuncoi
 
Posts: 33
Joined: Tue Jun 05, 2012 11:15 am
Score: 0 Give a positive score

Re: actor n background

Postby skydereign » Tue Jun 26, 2012 4:16 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron