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 hopefully simple question...

I am trying to make an event dissapear permanently after a certain thing has happened. I tried using erase event but the event just comes back after leaving and entering the room any ideas?
 

Fusty

Sponsor

Put a control switches command at the end of the event like this:

event01.jpg


event02.png


Then click ''new page''.

event03.png


Then on the 2nd page tick the box in the upper left corner and select the switch you turned on.

event04.png

Hope this helps.

P.S: Don't mind the name of the switch, I used pictures from a different explanation I gave.
 
That was a horrible analogy! (ok, maybe I've eaten a whole pie!) :biggrin:

"whole switch" makes it sound like it uses more resources. Both types need 1 bit of memory.

The advantages of self-switches: You can copy/paste an event, and it stays independent. The self-switch goes out of scope when the event does (gets removed from memory when you're not on that map.) There is a 5000 limit on regular switches (although I have a hard time imagining a game using them all.)

small game? probably don't matter much. But it's still a good practice.

Be Well
 

Zeriab

Sponsor

I am afraid that's not true Brewie.
Self-switches are significantly more costly than global switches. Not that it will have any effect on game performance. This is not an area where you should bother optimize in regard to game performance.
It's much more interesting to structure your switches in a way which saves development time.

On a side note Exit Event Processing does just that. Any event commands after that will be ignored.
It's good that you figured how to make the event disappear ^_^

*hugs*
 

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