How to move player the same way touch i moving?

0 favourites
  • 7 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hey guys

    Can someone help me to figure out to replicate the movement in this capx

    https://dl.dropboxusercontent.com/u/167 ... _does.capx

    Without using the drag and drop behavior.

    It works fine as it is, but when i hold the position it keeps going forward in a jagged way instead of staying still <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":-(" title="Sad">

    how can i do the same with the touch object?

    Hope you can help me <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile">

  • Do you want the player move to the touch position ?

    Touch - on any touch start ------------- player move to x (touch.x), y (touch.y)

  • Thanks for the quick reply A0Nasser

    No. i want the player to move like it does now.

    But without using the drag and drop behavior.

    Insted i want to create the same control with the touch object,

    because the drag and drop is not precise whe holding a position.

    When i test my game on mobile its perfect because no matter

    where i touch on the screen, i can control the players movement

    Like in the game R-type or Phoenix HD.

    But i founded out that when holdind still, people holds the finger on the screen and because

    i am scrolling forward the drag and drop behavior doesnt work that well.

    It wants to keep going forward i a jagged way.

    Thats why I wan to replicate the behavior in the capx without using the drag and drop behavior.

    Moving the player object in the same direction touch is moving and at the same speed touch is moving,

    without moving to the touch x & y position.

    I hope it makes sense

    Thanks again

  • Hey guys

    I found a behavior called rex_touchDirection2 that works perfectly

    Thank you rexrainbow for making this behavior.

  • Escualo

    It also could move to reverse way by set "Proportion" to -1 in properties table.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks rexrainbow

  • yes Rex plugins works fine

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