Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Showing animations in scripts

Maybe I just didn't look hard enough, but I can't find a way to play a specific battle animation just by using a script. I know it's possible, because I've seen it to an extent, but that script was for battles, and what I want is to show an animation while in a map, say, on the sprite. Can anyone help me?
 

poccil

Sponsor

To show an animation in a script, use a script like this:
Code:
    $game_player.animation_id = X
where X is the ID of the animation to show.  Or:
Code:
    $game_map.events[Y].animation_id = X
where X is the ID of the animation to show and Y is the event ID.

Be aware, though, that the setting applies only once per frame.
 
Thanks! It works, but now I can't seem to get it to keep playing over and over again.

Never mind, I figured it out. I'm still having the problem I had before, but at least I did it more simply.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top