How do I loop animation?

0 favourites
  • 5 posts
From the Asset Store
SynthWave Loop Pack includes 68 seamless loops, founded on 11 original melodies.
  • I've just created my first game, it works pretty well. 4 levels, and stuffs. But the problem is, I can't loop the animation! It looks bad without the animation looping! Please help

  • Insert this in your event editor:

    *Sprite - On Any Animation Finished

    --------->Sprite -> Play From "Beginning"

    or If you have a specific Animation Name for example called "Idle"

    *Sprite - On Animation FInished ("Idle")

    --------->Sprite -> Set Animation "Idle" From "Beginning"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Insert this in your event editor:

    *Sprite - On Any Animation Finished

    --------->Sprite -> Play From "Beginning"

    or If you have a specific Animation Name for example called "Idle"

    *Sprite - On Animation FInished ("Idle")

    --------->Sprite -> Set Animation "Idle" From "Beginning"

    This is what I do in my Event Sheet :

    KeyBoard - On Left Arrow Pressed - "Set animation to "Walk" (play from beginning)

    "Set Mirrored"

    KeyBoard - On Left Arrow Released - "Stop loop"

    "Set animation to "Idle" (From beginning)

    "Set not mirrored"

    "Set mirrored"

    Is this correct?

  • Ericpro06 - Use this, your events above have conflicts:

    *KeyBoard - On Left Arrow Pressed -

    -----> Sprite --> "Set animation to "Walk" (play from beginning)

    -----> Sprite --> "Set Mirrored"

    *KeyBoard - On RIght Arrow Pressed

    -----> Sprite --> "Set animation to "Walk" (play from beginning)

    -----> Sprite --> "Set Not Mirrored"

    *KeyBoard - Left arrow is down(Inverted) & Right arrow is down(Inverted)

    -----> Sprite --> "Set Animation to "Idle" (play from beginning)

    Tell me if there is something wrong because I haven't tested it but it should work.

  • why not just set the setting in the sprite animation of the Idle animation to loop ?

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