Sorry this is a super-beginner question,
Every time I've created a new variable I've made it a Global Variable, because I was thinking that if I created an int or bool at the top a room script, it would return to that value every time that room is entered.
For example, if I stated at the top of a room:Code: ags and an event in that same room caused that value to become false, but I left the room and came back, would it not read the original statement and make it true again?
I'm just trying to get my head around how this works.
Every time I've created a new variable I've made it a Global Variable, because I was thinking that if I created an int or bool at the top a room script, it would return to that value every time that room is entered.
For example, if I stated at the top of a room:
PineapplePizzaIsTasty = true;
I'm just trying to get my head around how this works.