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.

A small request

Marpy

Member

In one of the projects I'm working on, enemy events wander the maps, and when they come in contact with the player, it starts a battle. When the hero wins, self-switch A is turned on, to make the event go away. But what I was wondering, is there a way to make a script, or something, that when the player leaves the map, the self-switches of any event with a given name, like 'Monster' is reset, so that the monsters respawn when the player leaves, and comes back.
 

Zeriab

Sponsor

There is actually an easier solution to your problem. It will not reset self-switches.
When you turn on self-switch A to make the event go away. Instead of that use the Erase Event command.
Simple

*hugs*
- Zeriab
 

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