How to create Circular movement like this?

Get help using Construct 2

Post » Mon Jul 13, 2015 9:08 pm

Hello

Im trying to create circular movement like this:
Image

So, that the horizontal lines would rotate around the circe but would always stay horizontal. Would work like an "elevator" for the player.
No need for the inside circle at all, it would be maybe better without it, just for better understanding ...

Thank you

R.
B
6
S
2
G
4
Posts: 15
Reputation: 1,183

Post » Mon Jul 13, 2015 9:58 pm

What you might do is have a "master sprite" that is invisible, has the Rotate behaviour, and is at the position of the circle on your diagram. Then give the rotating platforms the Pin behaviour, and make them pin to the master sprite at the start of the layout (pin mode would be Position Only).
B
19
S
3
G
1
Posts: 29
Reputation: 1,038

Post » Mon Jul 13, 2015 10:11 pm

One way

http://www.sizzle-games.com/cirplat.capx

revised: 2 events now instead of 5
Bushy Ball\Boatman Bill\Sticky Web\Snake

Image ImageImageImage

During the gold rush it was a good time to be in the pick and shovel business
B
45
S
13
Posts: 247
Reputation: 5,247

Post » Mon Jul 13, 2015 11:40 pm

Alternatively, using math. You could also have platforms move in an oval this way. You can also set timeAngle however you want, such as an incrementing/decrementing value.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Mon Jul 13, 2015 11:50 pm

You can also achieve this kind of movement really easily using the sine behavior (). If you set the movement periods to the same amount and then offset the vertical movement's period by 1/4 of the period, you get very smooth, predictable circular motion with minimal effort.
B
4
Posts: 6
Reputation: 212

Post » Tue Jul 14, 2015 9:27 am

Yes exactly what I needed,


thank you very much ;)

R
B
6
S
2
G
4
Posts: 15
Reputation: 1,183


Return to How do I....?

Who is online

Users browsing this forum: Fradno and 11 guests