Skip to content

v0.5: Custom Animations

Compare
Choose a tag to compare
@jabsatz jabsatz released this 18 Jul 18:28
· 35 commits to main since this release

Now you can add your very own AnimationPlayer to complement the one packaged in SceneManager!

First off, setup a new Scene that has an AnimationPlayer as its root node. Make and name all the animations you want, and make sure you have a RESET animation that keeps all your visuals out of the screen.

Then, set your player in SceneManager via code (We recommend doing this as early as possible in your game. For example in the _ready() method of an autoload or your first scene):

SceneManager.set_animation_player('res://demo/animation_player.tscn')

Now, whenever you call SceneManager.change_scene() or any other transition function, you will be able to add new animation_name, animation_name_enter and/or animation_name_leave options with the name of your animation.

Check the README for more info!