Pfap
Member
[solved]
When my game starts I set a global variable to zero.
global.streak = 0
in the create event of another object I have:
global.streak += 1
then in a different object I turn the real that global.streak is holding into a string and draw it to the screen.
I get the number 120 drawn on screen when I'm expecting a 1.
Can someone point out my mistake?
I want to count the players streak of successes between rooms.
So, adding one to the global.streak each room is my goal.
Should I use an event other than the create event? I tried an alarm and got a value of 60 returned... how can I add just 1??
When my game starts I set a global variable to zero.
global.streak = 0
in the create event of another object I have:
global.streak += 1
then in a different object I turn the real that global.streak is holding into a string and draw it to the screen.
I get the number 120 drawn on screen when I'm expecting a 1.
Can someone point out my mistake?
I want to count the players streak of successes between rooms.
So, adding one to the global.streak each room is my goal.
Should I use an event other than the create event? I tried an alarm and got a value of 60 returned... how can I add just 1??
Last edited: