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.

Playing an animation on a memorized event from a common event

What I would like is as follows:

Lets say event ID 1 on map 1 calls common event splat

Common event splat needs to remember that it was called by event 1

After remembering that event ID 1 on map 1 called it splat needs to play an animation on it.

However if event ID 20 on map 5 calls common event splat, the same thing needs to happen.

Does this make any sense?
 

Anonymous

Guest

Set a variable equal to the event number before you call it. Then, in the common event, have this Script event command:

Code:
i = $game_variables[1]
$game_map.events[i].animation_id = 2

Replace 1 with the number of the variable you're using, and 2 with the number of the animation.
 

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