How to play an animation in script ?

I would like to know what is the command to play an animation in a script.

 

Thank you in advance!
character.animation_id = x


where x is the id of the animation you want to play, and character is the player or event you want to play it over. That could be:


$game_player


$game_map.events[event_id]


That is on the map. In a battle, it would be different.
I want to use him in  scene_title but, the character / player is not there.

Thus, which is the command with nothing (we choose the position with X and Y)
There is none.


The only default animations play over a game character (player or event), or over a battler. Neither of those exist during the title scene. Both require a Screen object to work over, and that doesn't exist during the title scene either.


You'll have to get something custom made that is a fair bit more complicated than just allocating an animation id to something.
Which is why we normally use things like bitmap manipulation during the update method to animate things in the title screen...

or create a dummy character on the title screen so you can show animation perhaps though I'm not sure if it's doable or if it's easy to do it...

Original thread: https://forums.rpgmakerweb.com/threads/how-to-play-an-animation-in-script.19260/