sprite orbit/rotate another sprite

Get help using Construct 2

Post » Mon May 01, 2017 11:39 am

I've searched online and cannot find the solution. Most of the capx demo links for been removed :(

So what I'm trying to do is, have sprite 2 orbit sprite 1

I found this...
Set X to CenterX + cos(angle) * dist
Set Y to CenterY + sin(angle) * dist
... but couldn't insert it in sprite2's set x

Can anyone help please?

Thanks,
Roberto
B
4
S
1
Posts: 43
Reputation: 463

Post » Mon May 01, 2017 12:24 pm

RobertoFreemano wrote:I've searched online and cannot find the solution. Most of the capx demo links for been removed :(

So what I'm trying to do is, have sprite 2 orbit sprite 1

I found this...
Set X to CenterX + cos(angle) * dist
Set Y to CenterY + sin(angle) * dist
... but couldn't insert it in sprite2's set x

Can anyone help please?

Thanks,
Roberto





There are many examples on this thread see if it can help you:
https://www.scirra.com/forum/viewtopic.php?f=147&t=190731&p=1117315&sid=3f01c85174ab40cbafb8accc91e0a27a#p1117315
B
38
S
22
G
51
Posts: 211
Reputation: 29,505

Post » Mon May 01, 2017 12:35 pm

Message: ziadhorat can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
By rotate/orbit you could just use the rotate function if it is not the character or AI such as the sun or something?

If you want a character to run around the planet i have a project that i'm currently working on, the capx linked below
http://bit.ly/2p0uFhR
I'm using his source, if you would like to develop it for mobile however PM me, i have a much more resource friendly version.
B
5
S
1
Posts: 44
Reputation: 494

Post » Mon May 01, 2017 8:01 pm

Amazing - Thanks Guys ;)
B
4
S
1
Posts: 43
Reputation: 463


Return to How do I....?

Who is online

Users browsing this forum: supreme676 and 7 guests