Hello! I'm working on a game that is nearly complete, but for some reason, the instance variables stopped changing. I didn't have this issue before and I've also realized that my global variables work fine. I don't really think it's because of Construct 3 just not working or anything but if you could help me out, I'd really appreciate it. Thanks.
The magic 8-ball says: You didn't realize you had to use a "static" local variable for your case construct.net/en/make-games/manuals/construct-3/project-primitives/events/variables
Oh whoops, I meant the instance variables. Sorry. But is it solved the same way with those?
Instance vars are always static. Hard to say what's wrong without seeing the project. Perhaps an action overwrites them when you don't expect to?
Develop games in your browser. Powerful, performant & highly capable.
Well, here is this version of the project (the graphics are degraded for privacy.)
After removing parts of the project that would seem to be the root of the problem, it still exists.
drive.google.com/file/d/1JNS5XTmhq2MCIi3oOpaM3cyWlGW7rSWs/view
And where exactly in that project is the variable that doesn't change? What variable is the problem?
Well, the BlockIcon and the BlockDraggable have variables that won't change. There are other draggable blocks that have similar variables as the BlockDraggable that aren't in the project.
You check in this condition if the object is on layer "Game User Interface" but the layer is named "Game UI". You probably renamed the layer at some point, this doesn't automatically update.
Oh shoot you're right! Thanks! I don't know why I forgot to change that but thank you.