so i basically have a game where you gain money (yes thats gross but you dont need to know more)
to gain money, you just need to wait. ive made an object that when you press it, you gain 1 coin every second, by doing:
Code: Select all
on mouseUp
repeat x = 10 //this number is only to test
wait 1 sec
add 1 to aMoney
put aMoney into field "moneyField"
end repeat
end mouseUp
but this needs to repeat indefinitely, and you need to do other things at the same time, but the problem is that if you run a repeat, you cant press buttons or do anything. is there another way to add money regularly without using repeat? thanks
kelyan