[SOLVED] How do I properly use the Animation Manager?

Uuemaich

  • Posts: 52
There's a whole lot going on in it and no real instructions. Anyone mind explaining it to me?

« Last Edit: April 07, 2012, 11:44:46 pm by Uuemaich »

Xietao

  • Posts: 725
Free Time:
Monday, Wednesday, Friday: 13h
Tuesday, Thursday, Saturday, Sunday: 7h
Loving Linux...

Uuemaich

  • Posts: 52
Anybody else? XD

Rimrook

  • Posts: 251
In a nutshell, the animation manager works like a hierarchy. More important animations will play over lesser important ones.

The manager has a list where 0 being the most important and the higher the number, the lesser and so on.

Under the [CUSTOM] palette you'll see a section for animation manager. From my understanding, the PLAY ONCE block plays an animation once and returns to the previous animation. As for the looping blocks, it uses the hierarchy.

For example you could have a category hierarchy like this:

0 : Attack
1 : Jump
2 : Duck
3 : Run
4 : Walk

Syntax:
<Loop [ANIMATION NAME] for [TARGET] using [CATEGORY]>

Example:
<Loop [Somersault] for [Self] using [Jump]>

To stop the animation, use the <Clear Current Animation for [SELF]> block or any clear block that fits your scripting. It will stop and go to the next animation on the hierarchy.

The default animations chosen on the manager UI under the category list will play if no animations apply with the categories. These would be your "IDLE" animations.

Hope this helps, and I hope I have the facts right. If anyone else wants to chime in, be my guest. I just learned to use it myself. Great for complicated boss battles. :)

Uuemaich

  • Posts: 52
Thank you, sir. That clears up a lot! I'll play with this later and see if I can get my character to animate correctly. :D

Rimrook

  • Posts: 251
You're welcome. Once you get it, you get it. Just one of those things.

Uuemaich

  • Posts: 52
Okay so I messed around with it and I still don't fully understand what I'm doing with it. Like I have a crawl animation that's 2 frames repeated. But when I try to crawl, he's stuck doing the first frame, so he just slides around, haha.

Uuemaich

  • Posts: 52
I'm embarrassed to post my code, but I need the help... XD

So yeah, he crouches properly and the jump is disabled and all, but the crawl doesn't animate. He's stuck in the idle animation, and even if I get rid of the idle animation and switch it with just the crawling animation, he's still stuck in the first frame. As you can see, I don't think I understand how to fully utilize the Animation Manager.

Uuemaich

  • Posts: 52
Can anyone help? It's starting to frustrate me not being able to get it to animate. XD

Uuemaich

  • Posts: 52
Never mind, solved the problem. :)

xandramas

  • Posts: 411
What was your solution
Check my profile to test my games in development.
Asterite Saga: http://www.facebook.com/XGameLabs
Next Game in development.

johantri

  • Posts: 64
ah yes...another solved topic without explanation :p getting frustrated here...

TALGames

  • Posts: 39
I'm embarrassed to post my code, but I need the help... XD

So yeah, he crouches properly and the jump is disabled and all, but the crawl doesn't animate. He's stuck in the idle animation, and even if I get rid of the idle animation and switch it with just the crawling animation, he's still stuck in the first frame. As you can see, I don't think I understand how to fully utilize the Animation Manager.

Well, Im no code genius ,but all i can suggest is that you get a pack called "Sonic action pack" or something like that and look at its code
There's an ugly chimpanzee in my bathroom and it won't stop yelling the f word