>
> Well the OP wanted a method so he doesn't have to repeat the same code over and over. Because a global variable isn't encapsulated , then he can just call it easily whenever he needs to without having to repeat code over and over.
> The only thing in my opinion that brings a mess to a large project is not writing down want you want 1st. Before I take on a larger game I write down in notepad the different scenarios and things I want in the game. That way I don't get stuck in the middle because I calculated what I was going to do.
>
Actually, the OP did not want anything, it was more of a rant.
FYI, Regular global variables have rather huge security issues.
Writing down anything related to your project is fine ... but .. what happens if you have 5k events ? or even more ...
Exactly, a notepad will do near nothing to assist in readability or maintainability on that front; Groups and Structured sheets is the clue there.
I was answering the 3rd point he had because alot of people have that same issue not just OP. I doupt he is worried about security issue's.
Now I don't think you understood the purpose of writing down what you want in your game before making it. Its to greatly reduce the amount of code your going to use and it helps you know what to group together before you start. If you just jump in and make changes on the fly , that will increase your workload by a ton. Also it will lead to fustrations and then rants.......Then the developer opens up a thread on Construct2 saying how badly it sucks LOL!!