Dragging object

Get help using Construct 2

Post » Wed Nov 14, 2012 9:40 pm

I want to control my space with dragging an other object. But i cant get it working so far

The object should pin to the back of the ship and when i drag the object down the ship needs to move down and up the ship moves up. As long as i move my finger than the space should move.

Hope you can help me.

B
5
S
1
Posts: 49
Reputation: 1,148

Post » Wed Nov 14, 2012 9:48 pm

Make the ships Origin on the back of the ship
Add the drag N' Drop Behavior to the object
and add this event
"Every Tick : Ship | Set position to ( Mouse.X , Mouse.Y )"

Cheers !
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Thu Nov 15, 2012 12:59 am

Thank you
B
5
S
1
Posts: 49
Reputation: 1,148


Return to How do I....?

Who is online

Users browsing this forum: Radulepy and 12 guests