How to use One spritesheet to run multiple animations ?

0 favourites
  • 3 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • Hello,

    In order to save memory I would like to import one big spritesheet and create multiple animations with the same spritesheet. But when I'm trying to make 3 animations like "Idle" "Walk" and "Jump" I'm obliged to open the same spritesheet 3 times in each animation, so It costs 3 times more memory.

    Should I create only 1 Animation for the whole spritesheet and program the animation myself.

    For instance :

    Event : When function Anim("Run") is called -> set animation frame to 39 -> start animation from current frame -> Set Instance Variable to "Run"

    Event : If Instance Variable = "Run" & Frame = 50 -> Set animation frame to 39 (to loop the animation)

    What do you advise me ?

    Thx

  • Just delete the frames that you're not using on each animation?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Lol, thanks Plinkie,

    it really works and it's memory saving !! (I was convinced that opening the same spritesheet several time to create different animation would costs more memory even with erasing the unnecessary frames)

    I feel more reasured for my game now !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)