TouchRelease Position Issues

Get help using Construct 2

Post » Thu Feb 28, 2013 10:41 pm

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.




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




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



Can anyone shed some light on this? Thanks in advance.Tekniko2013-02-28 22:45:07
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Thu Feb 28, 2013 10:52 pm

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...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Thu Feb 28, 2013 10:57 pm

Sorry, I have no idea what you just said. Could you simplify your explanation? Thank you.
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Thu Feb 28, 2013 11:21 pm

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...

B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Thu Feb 28, 2013 11:37 pm

Touch: Is in touch -> Paddle: Set x to Touch.X
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Fri Mar 01, 2013 12:25 am

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.
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Fri Mar 01, 2013 1:08 am

Oh ... I'm sorry , I thought you wanted the paddle to go all the way to the left when you stop touching .. Misurstanding ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Mar 01, 2013 2:42 am

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.
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Fri Mar 01, 2013 3:20 am

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.
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Fri Mar 01, 2013 6:24 am

I have tried Ramones way and I am still having the same issue.
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Next

Return to How do I....?

Who is online

Users browsing this forum: GSquadron, jeffige, MarkThomas, MisterAqua, Nifl, paala, Yahoo [Bot] and 23 guests