How do I stop repeating actions of global value?

0 favourites
  • 6 posts
From the Asset Store
Globals 2.0
$3.99 USD
Globals 2.0 stores and group variables. You can also load and save data (variables) from/to JSON files.
  • Because global values, this actions are repeting every tick. How i solve this and made this repeat only once?

    This is the print that shows the events. How do i do? Thanks for helps

  • You could add a system trigger once condition or any other condition that is only true for that one tick..

    Adding an action to set the global variable to some other value will work too..

    The best place to do that would in this case probably be at the end of the function-actions..

  • Which action i can use at end of this actions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Adding an action to set the global variable to some other value...

    so:

    system set global variable to (any number that doesn't have an event attached)

    You probably have an event that sets the global variable to trigger this event,

    so after the event has triggered, you only have to set it back to the previous value..

    Without looking at your capx or all of your events concerning these actions it's hard to make any further recommendations.

    The way I usually handle these conditions, it wouldn't be necessary to check for them every tick, because at some point the change of the global variable is triggered and these conditions can be put as a subevent of that triggered event..

  • Whats your email for i send my capx? This event occurs in Event sheet 1.

  • It's quite simple, adding the condition "Trigger once" at end of event!

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