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
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
How do I add local variable to function?
In my function I will need a counter. If I add parametr0 = 0 as number(function variable) I can't increment it. I figured I can store my "local variables" in array but it looks stupid. Is there a better way?
Right click..add local variable..
or just press V when function is selected
I want LOCAL not global!
Develop games in your browser. Powerful, performant & highly capable.
Right click on a sub-condition and add local variable. You can't add them to a top level condition - that would make them a global variable...
Or make Global and drag it to whatever sub-event to make it Local