runeater Posted May 2, 2016 Share Posted May 2, 2016 I am working on a small game and ran into a little snag. I create a menu of sprites and add callbacks to their onclick. When the start button is pressed I attempt to set a flag for my animation loop to change its behavior. Right now im still testing so my start function is supposed to spawn the entities (50 balls) and then move them throughout the screen, however they are failing to update their positions. I've linked the relavent code below as its ~100 lines. http://pastebin.com/vB4xgBTN Just to make things simple, startPress is the start of the game while start() is called when the website is loaded. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.