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.

'Erase' event, does it free memomy?

elder

Member

I was wondering if 'erase event' was freeing some memory as well. But I can't find this information anywhere.
 

khmp

Sponsor

Free memory... I guess you could look at it like that. It effectively clears out the event from the array in $game_map.events. But you have to make sure you are consistent. Using erase event only removes the event for the duration that the current map is active. As soon as you change the map and go back to the previous map all the event commands before the erase event line are executed again. So make sure you still use switches/self switches to rid yourself of events in a more permanent manner. A good approach is as soon as the event needs to disappear or be removed activate a switch/self switch that takes the event to another page that erases the event. This way the event is erased as soon as the map is loaded.

Good luck with it elder! :thumb: â„¢ Regi ;)
 

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