How can I code the below:
When 'sprite1' is created, add 1 to global variable 'number', I would also like to 'add 1' every 1 second.
I have tried looking but the tutorials I have found are only on scoring & player health.
Thanks in advance.
When 'sprite1' is created, add 1 to global variable 'number'
Conditions: The conditions in the event you create the Sprite
Actions: Create object Sprite
Do + 1 to scene variable "number"
I would also like to 'add 1' every 1 second
Conditions: Timer "increase_variable" is greater than 1 second
Actions: Do + 1 to scene variable "number"
Reset timer "increase_variable"
I know it not working, as I am waiting 1 second and the 'money' is not going up.
Do = GlobalVariableString(number) to the text of money (text object)
hi looks cool!
hi try adding trigger once to bat is in collision […]
Did you check the save-load and level-editor examp[…]
If you're able to read and understand a .json file[…]
Thank you, it works now! :D
Yes please make a tutorial :D Thanks a lot for all
Ce n'est probablement plus d'actualité, mais pour […]
hi, its the same, you can rename all with a simple[…]
BWPanda - works perfect, thank you! updated the e[…]
hi can you post a screen capture of your game?? If[…]
hi, take a look here: http://forum.compilgames.net[…]
Haha, maybe it was updated years ago! (I'm using i[…]
Jep we already have groups what is something compl[…]
how to move an object (character) like flappy bir[…]
Hi guys, I was wondering if we can use this code w[…]
Hey folks, Brand new realistic seamless textures […]
Great job as always! Thanks, I really appreciat[…]
You can't pass a variable to a function, I mean th[…]
hi, not exaclty the same but here https://stackove[…]