touch twice + keep last touch = run [ solved ]

0 favourites
  • 5 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • (written with translator)

    It sounds simple, but I can't figure out how to do it. please help.

    ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

    one touch (A) + keep touch / (C) move forward (speed 100)

    ㅡ play "walk" animation

    quick touch twice (A) + keep last touch / (C) move forward (speed 200)

    ㅡ play "run" animation

    ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

    I solved the first one, but it doesn't run after tapping twice. If I tap twice, it briefly changes to a running motion animation, but if I hold down on the last touch it goes back to the idle animation state and doesn't move forward either.

    I would appreciate it if you could tell me how to make this possible.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • (written with translator)

    (The character is for testing purposes only and I downloaded it from the internet.I do not own the copyright.)

    (platform : no difference whether it was set to the default controller or not.)

    I tried the code you suggested.

    The animation changes are fine.

    I've slightly modified the code you gave me to make the character move.

    I don't know if I did well.

    ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

    ( 1 )

    always it moves at the "run" speed and not at the "walk" speed.

    And the animation only played "run".

    Touch it once or tap it twice hold.

    ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

    ( 2 )

    The animation changes well. but don't go forward

    ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

    # That sprite is the controller that will be displayed on mobile.

    # So ( 1 ) should work normally.

    ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

    I don't know much, so please understand.

    I'd appreciate it if you could tell me what to fix. please help.

  • Thanks for the quick reply.

    Works fine. thank you.

    I'm not good at English, so I chose the present continuous tense. like "Touching".

    "touched" looked like the past tense for me.

    sorry my English.

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