how to make a animated stage? #37
-
Idk how to make an animated stage. pls help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I assume you at least somehow know how to create a non-animated stage when I say this, but each sprite has a value, "animated." It's a true and false value, but by default it is false. Simply make a sprite with that value set to true and link the path to your sprite as usual, although it has to have an XML file as well so just know that. There's also "animation_index" but it's most likely the first frame the animation starts on, with the first frame being 0. |
Beta Was this translation helpful? Give feedback.
-
Json stages use the sprites and animations arrays to load animated objects. When marked as animated they will grab the animation group from the animations array using the animation index, and the animation group contains all animations for that sprite, and get automatically added. You need to use scripts to play the animations, as json stages are only responsible for creating the stage. |
Beta Was this translation helpful? Give feedback.
Json stages use the sprites and animations arrays to load animated objects. When marked as animated they will grab the animation group from the animations array using the animation index, and the animation group contains all animations for that sprite, and get automatically added. You need to use scripts to play the animations, as json stages are only responsible for creating the stage.