How do I Rotate object on a dynamic origin?

Get help using Construct 2

Post » Mon May 02, 2016 11:14 am

Hi all,

bit of a trig nightmare for me this!

Essentially, I am trying to rotate an object on a user-defined, dynamic origin.

Image

I have found loads of code examples to make an object *orbit* a dynamic pivot point but that's not what I'm after.

Can any Maths geniuses help? I've been stumped for literally days!

Thank you!

John
B
6
S
2
Posts: 28
Reputation: 508

Post » Mon May 02, 2016 3:28 pm

B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Mon May 02, 2016 3:56 pm

@R0J0hound You absolute hero! That seems to work a *treat*

In case you were wondering, it's for this game I'm making (video): https://twitter.com/johnevelyn/status/724945771670437889

For anyone else, here's a capx of the working solution:
http://robothousegames.com/construct2/rotate_on_dynamic_pivot.zip

Thank you so much!

- John
B
6
S
2
Posts: 28
Reputation: 508

Post » Mon May 02, 2016 9:48 pm

Hey, I like the art style of that video! Very cool :D
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 209
Reputation: 3,476


Return to How do I....?

Who is online

Users browsing this forum: blackhornet and 15 guests