Hello everybody. I have just discovered a SERIOUS problem in my game today.
I have a bunch of items in my game that grant different effects and stats via increasing global variables, and sometimes object variables. For example, one item gives me damage, so it increases a global variable called damage. Other more complex items that grant a special effect, I increase an object variable for the player. When the object variable = 1, it means I have the item, and the effect can do it’s thing and call it’s corresponding events.
However, my game is going to take place over different scenes. This is where the problem is. When I change scenes, ALL of my global variables and object variables are reset to their defaults. I have no idea what is up! Can anybody please help me out on this? How do I make global variables actually ACT like global variables?
Note: I feel like the culprit may be in the player’s logic. For every stat the player has, it goes:
Condition: Trigger Once.
Action: Do = 1 to Global Variable Damage.
I only want these starting stats to be applied once, not for every time the character exists in a scene. If any of you think this is the reason or not, please let me know how I can fix it. many thanks in advance.