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.

how do i make a player touch event only happen once?

Okay, so I know how to make something happen when your character walks into it but i have it in a box around my player so when he moves it tells him something eg. a sentence of text, but after that i want to disable all of those events after he has bumped into one so it doesn't happen everytime i walked into it.. does anybody know how?
Thanks!
 

Jason

Awesome Bro

In the event, make a new page, on the first page, add a Control Self Switch A = ON
And on the second page, on the left where it says Conditions, tick Self Switch, and make sure it says A is ON

That should work.
 
Second page for the events, triggered by a Switch. Have the first page of the events show the text, and then trigger the switch.

If this was only one event, of course, I'd use a Self Switch, to save switches.
 

Jason

Awesome Bro

Commodore Whynot":1723qhzl said:
As it's more than one event of course a self switch won't work as Unka suggested though, so use a normal switch (the same switch for every event).

But he DID suggest to use a switch;

Unka Josh":1723qhzl said:
Second page for the events, triggered by a Switch. Have the first page of the events show the text, and then trigger the switch.

Lol.
 
jbrist":20b4d4pg said:
But he DID suggest to use a switch;
Lol.

Yes, well done for missing out the line I was referring to. I was saying that while a self switch is ideal for single events, in this case a standard switch should be used.


I.e. just do exactly the same but make the second pages of the events require a switch to be on, and set that switch to on when then trigger occurs.
 

Jason

Awesome Bro

Okay no need to be a smartarse cause I misread your post, I thought you said Unka was suggesting that he use a self switch;

"As it's more than one event of course a self switch won't work as Unka suggested though"

...
 
OK, well while you two are bickering about who said what, I'm actually going to help this guy....

Ok, so on the first page of all your events, you have your text, well at the end of your event, turn a switch on. For now, I'll call it switch 5. So then on the second page of all your events, you leave it blank, but turn on the condition that switch 5 is on. This way, once you step on one of the events, you will see all your text, but then the switch will turn on so that none of the other events will run anymore. (Unless you turn that switch back off)...If you need pictures, I'd be glad to do them for you...(though I hope you don't need them...)

Hope this helps!
~xgamexfreakx
 
pleasehelpmermxp.jpg
 

Fusty

Sponsor

Make every event look like this:

@> [Your text]
@> Control Switches [001] On

Then make a 2nd page and check the switch box in the upper-left corner and select the switch you activated.
Leave the rest blank and it should work.
 

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