Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I don't understand this:
This is my situation:
local variable Switch = 0 (initial value, not constant or static.)
If clicked on mouse, set value Switch to 1.
But when I check the variable, it stays at value 0.
Why is that?[
Develop games in your browser. Powerful, performant & highly capable.
Local variables always start with their default value when the event runs.
Local variables are reset when c2 starts going through the event sheet again. If you want it to stay throughout the entire game you need to set it to static.
Thank you, cow that is encrypted.
That was exactly what I was looking for.