Jump to content

Animation not behaving as expected


runeater
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...