How do I play the whole animation on touch

0 favourites
  • 3 posts
From the Asset Store
This Student Workbook uses both Construct 3 & 2 encoding. It supplies client-side & php "back-end" encoding.
  • Hello everyone! The problem is in animation control. I am using Spriter plugin for C2 and the thing that I need is that on touch the whole animation must be played (punch in action game). In my situation it's become to start to play and then if you continue to put pressure on the button it is playing. What I need is that must play the whole animation in one touch. How to design this?

  • i am not quite sure i understand what you want but i will give it a try.

    either

    'button' is in touch

    trigger once.......................... play spriter animation.

    or add a boolean instance variable to the button named 'punching'

    button is touched

    button 'is not punching'............ play spriter animation and set 'punching' to true

    on spriter animation 'punching' finished ........ set 'punching' to false

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i am not quite sure i understand what you want but i will give it a try.

    either

    'button' is in touch

    trigger once.......................... play spriter animation.

    or add a boolean instance variable to the button named 'punching'

    button is touched

    button 'is not punching'............ play spriter animation and set 'punching' to true

    on spriter animation 'punching' finished ........ set 'punching' to false

    Thank you very much!

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