using mouse to drag a partially constrainted objec

Discussion and feedback on Construct 2

Post » Tue Sep 03, 2013 5:19 am

hey folks...

thanks in advance....ive got an object that I would like to act like it was attached to the background but could rotate about the point it was attached. ive go that figured out with a revolute joint to the background object....

next I would like to be able to use the mouse or touch to control the rotation of the object...think of a plank nailed to the background in its center with one nail and i want to be able to click one end of the plank to drag and adjust its angle...

any ideas?
thanks
Dan
B
8
S
3
G
1
Posts: 87
Reputation: 1,493

Post » Tue Sep 03, 2013 11:10 am

Something like this?

https://www.dropbox.com/s/z57k5seq1wz2ksy/rotate_example.capx
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Fri Sep 06, 2013 4:08 am

exactly yes, thanks!
B
8
S
3
G
1
Posts: 87
Reputation: 1,493

Post » Fri Sep 06, 2013 6:03 am

so can you do this same thing with using a physics revolute joint?
thanks
B
8
S
3
G
1
Posts: 87
Reputation: 1,493


Return to Construct 2 General

Who is online

Users browsing this forum: Google [Bot] and 18 guests