Trigger once while true,How does it work?

1 favourites
  • 3 posts
From the Asset Store
Change the size and position of everything without calculating anything!
  • Hi! Can someone explain to why is the positioning of "trigger once will true" affects a condition.

    Like you see below, if its above steal_percentage = 1, it doesn't work. But if its below, it works perfectly fine.

    Thank you in advance :)

    Tagged:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have nothing to add to this :)

  • As soon as the condition becomes true, it will trigger once. So, for example if you have an event such as "Keyboard - Space is down," then as soon as the key space is pressed down it will trigger the trigger once event which will, hence the name, trigger the actions once.

    Here is an example. So, if we did not have the trigger once event, every tick the player overlapped the coin, the sound would begin to play. Obviously we do not want that so we put the trigger once event. Although in this case there is an easier way to do this without trigger once which is to just use the "on collision" event.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)