How do I change the animation of a sprite?

0 favourites
  • 4 posts
From the Asset Store
Carousel Animation, make carousel of you image gallery or anything
  • Hey there.

    I have three animations for a lamp - "idle", "true" and "false" and I want change the current

    sprite when the mouse click on the lamp.

    I used this logic --->https://drive.google.com/file/d/0B7uVOktQPL7jM21LN2V0VWFpdm8/view?usp=sharing

    but isn't working.

    How should I procced?

    Thank to everyone, in advance.

    (any problem with my question - frist question - is just to tell )

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • when click on lamp set animation to what ever true idle false, or what the name of the animations are if you dident changed them then you have default animation1 animation2 set the animation then after you set it you have to play it, Start animation from beggining or current frame!

  • when click on lamp set animation to what ever true idle false, or what the name of the animations are if you dident changed them then you have default animation1 animation2 set the animation then after you set it you have to play it, Start animation from beggining or current frame!

    I belive that I placed the logic that you said.

    Check out --> https://drive.google.com/file/d/0B7uVOk ... sp=sharing

    But the sprite is not changing when I click on it.

    Thanks for the answer, gamescorp.

    I wait for your feedback.

  • If you want the object called switch to play a different animation, your code should work, as long as switch has an animation called "true"..

    you could even remove the action start animation from current frame, because it's not different from the action above..

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