How do I can do animation by controlling with the mouse

0 favourites
  • 5 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • I am a newbie (Construct 2/ free edition) and trying to do the animation, which is controlled by mouse.

    My first string

    Note::: Sprite2 - it's animation from few frames (loop).

    Red sprite - zero (empty)

    Cursor moving to left and animation plays. It works fine.

    But when I add the second string, the animation disappears. It works, but in another way.

    Note::: Sprite2 - it's animation from few frames (loop).

    If the cursor to the left, I have now the first frame of the first animation if to the right - the first frame of the second animation. Animation don't work.

    I tried different ways, but it shows only 2 pictures.

    I hope for your help, what can I change or add to it to work properly. Thanks in advance

  • You are constantly spawning different objects at the same place over and over again depending on the position of the mouse.

    What is it exactly that you are trying to do and it's not working?

  • In this case cursor to left from red sprite - an animation, to right - another. What don't you understand?

    when there is one first string - animation is working (play all frames). If I add second string - I have to left 1 frame only (first animation), to right - first frame from another animation. What I have to do that all the frames from both animation play?

    I feel like a fool to repeat my post again

  • You are aware that you are spawning a sprite every tick, which is about 60 sprites per second?

    I guess what you'd like to do is X>mouse.x - set animation

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • LittleStain, thanks. It's working, but strangely a little

    OK, I'll try to undestand logic of the program

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