Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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:
Group
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.