How do I Hold a Variable value

Just started using Construct 2? Post your questions here

Post » Sat Oct 07, 2017 4:33 pm

I have some variables in the First layout to deal with the volumes. They are all = 0.
If I change this variables to 1 and go to the Second layout, they still 1, but when I come back to the First layout they automatically change to 0 again.
Every time I enter in the First layout the variables are set to 0... and this is not made by my code. How to hold their value?
B
28
S
14
G
6
Posts: 90
Reputation: 5,492

Post » Sat Oct 07, 2017 5:33 pm

It will be an issue in the code. Assuming they are global vars you will be setting it to 0 with some event linked to the first layout.
B
48
S
19
G
87
Posts: 2,317
Reputation: 51,518


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest