TouchRelease Position Issues

0 favourites
  • 11 posts
  • Hey everyone!

    Plain and simple... I used a Touch.X to move my Paddle. When the touch is release, my Paddle will snap all the way to the left and stay there.

    This is how I initiate the game/paddle/ball etc.

    <img src="http://imageshack.us/a/img853/7061/0001wq.png" border="0" />

    This is how I keep the Paddle moving and following my touch.

    <img src="http://imageshack.us/a/img62/3671/0002rh.png" border="0" />

    This is how I have tried to correct it. (No change)

    <img src="http://imageshack.us/a/img547/8528/0003w.png" border="0" />

    Can anyone shed some light on this? Thanks in advance.

  • Hey , Doesn't change because the events are the same

    Here's how you do it ...

    Move it where you want it to be , Find out the X in the paddle settings

    and remplace that event with the value you just got ...

    Cheers...

  • Sorry, I have no idea what you just said. Could you simplify your explanation? Thank you.

  • Okay , It's not to be rude , but you need to do some tutorials

    So , re-cap ...

    You see the paddle ? , place it where you want it to snap

    Then , click on it 1 time ... You'll see that a lot of stuff appeared on the left ...

    The position tab , you see it ? at your left , It should be two numbers separated by a , ... The first value ... Write it down

    Now ... the last action you added as a screenshot , The "on any touch ended" , Click on it and change "Touch.X" by the value we wrote down earlier ...

    That's it !

    Cheers...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Touch: Is in touch -> Paddle: Set x to Touch.X

  • When you release the touch, the touch coordinates become 0,0 so if you have it constantly going to touch.X its going to move to the left side while not in touch. ramones said to use Touch: Is in touch because this will only move it while the player is touching the screen, meaning it wont move to the left side. and Whiteclaws those events are completely different, they would work differently.

  • Oh ... I'm sorry , I thought you wanted the paddle to go all the way to the left when you stop touching .. Misurstanding ...

  • Okay, still have no idea what you guys are talking about. I will try to reiterate my final product.

    I need the Paddle to STAY in the last POSITION it was Touched. NOT reset to the center or 0,0 or anything like that.

  • Use what ramones said. It will only move the paddle while the player is touching the screen, and when they let go it will stay.

  • I have tried Ramones way and I am still having the same issue.

  • Finally figured it all out. I have duplicate events telling the Paddle to move on Touch.

    Anyways its all fixed. Thanks for the input guys.

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