How do I make object follow touch?

Get help using Construct 2

Post » Sun Dec 21, 2014 2:29 am

Hey I looked at the flappy bird demo and wanna try make it so instead of jumping it follows touch :D Thanks :D
B
3
Posts: 2
Reputation: 186

Post » Mon Dec 22, 2014 5:56 am

B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Mon Dec 22, 2014 7:51 pm

You could set the object's position with the touch object's coordinates. For example:
Is in touch (Touch oject) - Set position: X: Touch.X; Y: Touch.Y (Sprite object)

Also, you can use the Touch object's coordinates with a movenment behavior to create a smooth movenment.
B
135
S
33
G
17
Posts: 1,558
Reputation: 20,730

Post » Tue Dec 23, 2014 1:04 am

No @jeffige I meant it follows where your finger/mouse is, thanks though ^^
@glerikud i'll try that out ^^
B
3
Posts: 2
Reputation: 186


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 27 guests