newbie animation question

0 favourites
  • 5 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • The documentation seems lacking in terms of controlling animation, or maybe I just haven't found the right page. At the moment I'm trying to do something very simple. I have four on screen buttons, each of them should play a different animation on a single sprite.

    Right now I have the animations broken up into four different sequences in the animation editor. When I go to the event editor (and this is where I'm finding no documentation) I first SET the animation to LoopName.AnimationName - then set animation frame to 0 then start animation from beginning. This works fine for the first button and the first loop. I can't for the life of me figure out how to get the second loop to work - I tried making a second event on the second button that's identical except that it's LoopName2.AnimationName...

    Any ideas? Any documentation?

    Also - the first loop seems to play when I open the file - not sure how to get my sprite to just sit there and not animate... thanks for any help

  • In the properties for animation at the top left when you are in edit mode you can set it to Loop.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't need to do all that, When you edit your animation you already have a bunch of properties in the property panel (click on the name of an animation you'll see)

    You can set a default speed and some looping properties.

    So basically you just need to

    +Button: on clicked
      -> Set animation to "what you want" (start from begining)

    It should play the animation you set and loop it if you set this animation to loop in properties

  • It basically sort of works - the problem is I can't set the animation to what I want. I'm trying to click on one sprite to play an animation on another sprite - and when I try to set the name of the animation it says 'this is not a variable name in the scope' - so - I can't trigger animation on one sprite from another? Is there a workaround?

    Thanks for the help!

    I'm trying to turn this site into html5:

    poopfriends.com

  • Ok - it took me three hours to figure out I need "quotes" around the animation name - meh... thanks for the help

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