So, I wanted my game to call a function every 1.5 seconds, so I added the below code to my On Frame Event function and, the game doesn't load. It says it uploaded in the console, but I either get a pinwheel cursor on my computer, or nothing starts up if I'm testing on my phone. It runs fine without this bit:
while isMoving == true do
timer = Timer.delayedCall(1500, spikeFall)
end |
Any ideas? Am I doing something wrong?
Thanks!
Comments
You probably want to replace the while statement with if, and make sure it's only run once by setting a Boolean variable;
Niclas
Likes: antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!