How do I use touch to move stuff?

Get help using Construct 3!

Post » Sat Jul 08, 2017 6:36 pm

Message: beguinner can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I tried this https://www.4shared.com/file/J7JByyT5ei/inputtouch.html
but there are 2 problems: 1) all the instances of the family move while I want only the one I touched to move
2) the movement don't go from point A to B but it keeps moving indefinitely.
B
14
S
6
G
4
Posts: 27
Reputation: 3,158

Post » Sat Jul 08, 2017 8:19 pm

B
20
S
9
G
4
Posts: 473
Reputation: 4,260

Post » Sun Jul 16, 2017 10:46 am

beguinner wrote:I tried this https://www.4shared.com/file/J7JByyT5ei/inputtouch.html
but there are 2 problems: 1) all the instances of the family move while I want only the one I touched to move
2) the movement don't go from point A to B but it keeps moving indefinitely.

add a Boolean variable to the object you want moved, make it so when the mouse clicks on the object, it sets the Boolean to true, then add add physics to it, make gravity be set at 0 at the beginning, set friction zero then after that you can apply force to the sprite towards the mouse.
B
27
S
12
G
5
Posts: 79
Reputation: 5,223


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 1 guest