How do I orbit following mouse

Get help using Construct 2

Post » Mon Jan 04, 2016 5:10 pm

Hello,

I would like an object in orbit follows the mouse while in orbit

Thanks all
B
6
S
1
Posts: 8
Reputation: 431

Post » Mon Jan 04, 2016 6:33 pm

Could you explain more?
What is the object "orbiting" and how is this "orbiting" achieved right now?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Jan 04, 2016 7:25 pm

Message: LittleBob is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Yeah sorry,

I have a character (mage) which has a hand. This hand I want what can turn 360 ° without the distance between the mage and the hand changes
B
6
S
1
Posts: 8
Reputation: 431

Post » Mon Jan 04, 2016 11:05 pm

There are so many ways to do this, it would be important to know more to not choose the wrong way for your project..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jan 05, 2016 4:42 pm

What do you want for know what choose ?
B
6
S
1
Posts: 8
Reputation: 431

Post » Tue Jan 05, 2016 4:50 pm

LittleBob wrote:What do you want for know what choose ?


Maybe you could share your events and/or capx, an image of your game, explanation on what the hand will be used for other that rotating..

Simplest way would probably be to set the origin to the left of your sprite and every tick set angle towards mouse.x,mouse.y
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jan 05, 2016 5:35 pm

Thanks for you help, i've found the solution
B
6
S
1
Posts: 8
Reputation: 431

Post » Tue Jan 05, 2016 5:39 pm

Image
B
67
S
26
G
12
Posts: 511
Reputation: 11,974


Return to How do I....?

Who is online

Users browsing this forum: lennaert and 12 guests