"Triger once while true" and Layout travels.

This forum is currently in read-only mode.
From the Asset Store
Change the size and position of everything without calculating anything!
  • Basicly if an event with condition addon "triger once while true" is being run - its being run once. but what if player changes layouts ? does it run again on the other layout or travel unchanged?

    EDIT: to not make another thread and beef my "i_dont_care" post count ill add this question:

    IS it possible to change Layouts from OTHER Layouts? think: i am on level 1 with a switch and there is level 2 with a doors, if i pull the switch on level 1 - will the doors on layout 2 open?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What trigger once does is it runs the code the one tick where the condition became true and will only run again if the condition becomes false then true again. Without it the code would run every tick while the condition is true. It does not simply run once period.

    What you want to do for your second question is use global variables. When you change a global variable it'll be changed for the entire program. So for your example have a variable for you door and have it 0 when the door is closed and 1 when it has been opened and it'll stay opened/closed if you change layouts.

  • What trigger once does is it runs the code the one tick where the condition became true and will only run again if the condition becomes false then true again. Without it the code would run every tick while the condition is true. It does not simply run once period.

    What you want to do for your second question is use global variables. When you change a global variable it'll be changed for the entire program. So for your example have a variable for you door and have it 0 when the door is closed and 1 when it has been opened and it'll stay opened/closed if you change layouts.

    Thank you kindly.

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