Arcen Games

Games => Bionic Dues => Topic started by: nas1m on September 08, 2014, 04:59:07 PM

Title: How do the bot animations "play"?
Post by: nas1m on September 08, 2014, 04:59:07 PM
Just a quick question that occured while working on the DiggleBot:

The bot "dict" files contain four frames worth of animation.
The animation of e.g. the EMPBot looks much smoother than that, though.

Does the bot animation simply loop back and forth, i.e. 1, 2, 3, 4, 3, 2, 1?
Or am I missing some more elaborate trick here?
Title: Re: How do the bot animations "play"?
Post by: x4000 on September 08, 2014, 05:04:39 PM
That's it!
Title: Re: How do the bot animations "play"?
Post by: nas1m on September 08, 2014, 05:11:05 PM
That's it!
Wow, that was quick :). Thanks!
If you don't mind a follow-up:
Is the last frame repeated at each direction change?
Title: Re: How do the bot animations "play"?
Post by: x4000 on September 08, 2014, 07:57:36 PM
No problem. :)

And no, the last frame is only shown once 1 2 3 4 3 2 1, not 1 2 3 4 4 3 2 1.  Otherwise you wind up with a kind of a "pause" at that frame, which would be bad. :)