Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8735089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:58:32+00:00 2026-06-13T09:58:32+00:00

I am building a simple game with a few animations and I am having

  • 0

I am building a simple game with a few animations and I am having a problem with a loop extended from starling.

My code uses sprite sheets and texture atlas to fetch the animation sprites but when I add

anim.loop = false 

the animation doesn’t play at all. My code looks like:

anim = new MovieClip(Assets.getAtlasDuck().getTextures("duck_"), 20);
anim.loop = false;
starling.core.Starling.juggler.add(anim);
this.addChild(anim);

if I remove the loop the animation plays but loops. If I add:

anim.addEventListener(starling.events.Event.COMPLETE, duckComplete);

the animation doesn’t play. the duckComplete function just removes the animation from the juggler.

I want the animation to play once and then stop. Even adding:

anim.play();

doesn’t play the animation with the event listener or the loop = false.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:58:33+00:00Added an answer on June 13, 2026 at 9:58 am

    After adding the MovieClip with a loop property set to false to the Juggler you have to control the clip manually using these MovieClip functions:

    anim.play();
    anim.pause();
    anim.stop();
    

    Starling Documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a simple 3D game for practice, and I am having trouble
I'm building a simple 2D game in Cocos2d which involves having enemies cross the
I'm working on a simple html5 platformer, building of a previous game but having
I'm building a simple game which consists of Mobiles -- the in-game characters (Mobs).
I'm building a simple 2d game,and I'm wondering if some better coders than I
I'm building a simple game design for a project of mine. I have the
I'm building simple application on as3. Kind of starship game. What I want to
I'm building a simple game in an ASP.NET/VB.NET web app. The game has a
I'm building a simple chess game and am stuck on trying to paint drawings
I'm starting with C++ in more depth while building a simple 2d game engine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.