I have made a game where a ball is moved to a location and back and you have to click as many dots as possible. However, it is running very slow and laggy which makes the game useless.
Right now, my code sends a move event to a graphic and then generates a certain amount of buttons. The user then has to click all the buttons before the ball reaches the end. Here is my move code:
Code: Select all
move graphic "ball" to 20,75 in 1000 milliseconds
switch the location of graphic "ball"
case 20,75
move graphic "Ball" to 20,445 in 800 millisecond
case 20,445
--Take points away depending on time
answer "You scored" && score && "points!"
resetGame
end switch
Code: Select all
repeat with i = 1 to jackNum
create button
put word 3 of it & return after jackList
set the loc of button id (word 3 of it) to randomNum(xBounds[1],xBounds[2]), randomNum(yBounds[1],yBounds[2])
end repeat
Thanks