Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord
    1. Home
    2. Popular
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month
    • DANEEBOY

      Not adding up
      Help • • DANEEBOY

      3
      1
      Votes
      3
      Posts
      26
      Views

      DANEEBOY

      @kat thank you I will give that a try.

    • TurtleGamer 0

      New Button Presser Game
      Finished Projects • • TurtleGamer 0

      2
      0
      Votes
      2
      Posts
      34
      Views

      Kat

      Well done on another game!

      I think I see what's causing the problem. On lines 34 to 37 you have some createSprite() and loadImage() functions which are inside the main loop. Creating or loading something inside a loop will eat up memory each frame and cause an error eventually, so I would just move those to be above the main loop. (I'd also move the next few lines, setSpriteImage/Scale, with them to keep it all together neatly.)