Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
0
Members

[Help] How to use an animation in code

A topic by Zodoh created Jan 11, 2016 Views: 545 Replies: 3
Viewing posts 1 to 4

Hello there,
It's a really interesting project, good job !


I'm currently trying to do some test and I would like to know how to use an animation in the code.
I already created a animation in the Sprite Asset (I took Ryu from SF :3).

I will also add a information : the "Documentation" link in the IDE is broken :/

Thank you !

Moderator

Hello!

I don't know how much you know about Superpowers yet. To set an animation you can do `this.actor.spriteRenderer.setAnimation("nameoftheanimation");`from a behavior attached to the same actor with your sprite. Is that clear enough ? ^^

Also thanks for the bug report. We already found out this one and it will be fixed in the next release!

Thank you for your answer.

I'm pretty new on it but as I didn't find any tutorial about this... Do you think you will do more turorials in the next weeks/months ?

Moderator

More tutorial are definitely planned! Probably a lot of very specific demo to help get a hand on various basic features.

Maybe I can recomend the collision tutorial ? This may have too much information for beginning but it helps to get to something nice with, hopefully, enough explanation.