How do I Work with local number

  • I'm setting a value to a local number, but it keeps returning the initial value right after I set the new value, like less then 1 sec it changes.

    I had to use global number in order to do what I want, but it can't be normal. Since I've worked with local numbers before and this not happened.

  • From the manual :

    By default, local variables reset to their initial value whenever entering their scope (usually every tick), like local variables in programming languages. If the variable is marked static in the Event Variable dialog it will persist its value permanently, like a global variable.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • From the manual :

    By default, local variables reset to their initial value whenever entering their scope (usually every tick), like local variables in programming languages. If the variable is marked static in the Event Variable dialog it will persist its value permanently, like a global variable.

    Well, I've used local numbers before and it did not happen and wasn't marked static too. That's wierd.

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