I'd like to make a suggestion or maybe there is even already a solution for my problem.
Since I'm working on a huge project I use a lot of global variables. I try to use as many local variables as possible, but I just need most of them in different events.
It would be just awesome if there is a possibility to define instance variables for Layers or local variables for Groups.
Putting a Local Variable inside a group at the very top will make that variable work throughout that group :P
Hm when I try this it always stucks to the first event of the group.
Illustration of Jase00's solution :
<img src="https://dl.dropboxusercontent.com/u/36472942/construct/forumhelp/LocalVariable_Group.PNG" border="0" />
Thanks for your efforts but it's not working properly for me :(
Indeed I can access the variable in the whole group but it resets every time I call an event of the group.
Develop games in your browser. Powerful, performant & highly capable.
Then check the Static checkbox in the variable. Manual article
Now it's working! Perfect, thanks a lot!