Rotating platforms don't work

Get help using Construct 2

» Sat May 18, 2013 9:24 pm

I've been pondering an issue regarding rotating platforms.

Now, we all know that Constuct 2 handles horizontal, vertical, and diagonal moving platforms beautifully. However, if you have a look at this capx you will see that Construct 2 can't handle rotating platforms at all. The player slides along the ground unnaturally, and it takes longer to circumnavigate the sphere in one direction than it does in the other.

Now, I understand this lack of support as they have relatively little use in games that don't involve gravity shifting. But, I am curious to see how you guys would go about getting a good system up and running.

It gets even worse when your rotating platform isn't a circle, as in this capx. It is using the gravity method I used in AirScape, and the whole terrain is rotating around 1 point. The character moves around terribly and it barely works.

Anyone have any ideas?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

» Sat May 18, 2013 9:42 pm

Well its not bad considering you're rolling around on a polygon rather than a circle.

You could probably smooth that out a bit using anglelerp()newt2013-05-18 21:43:03
B
173
S
50
G
194
Posts: 8,560
Reputation: 121,356

» Sat May 18, 2013 10:13 pm

@newt the polygonal quality isn't the issue - the issue is the fact that you don't say in one place on the circle.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

» Sat May 18, 2013 10:32 pm

Well you would have to go with a different method otherwise.
I mean you cant have the platform movement without the platform movement physics.

The best I could give you is to make your own custom movement with trig.
Its the same as rotation around a point, you're just clamping it to a radius of a circle.
B
173
S
50
G
194
Posts: 8,560
Reputation: 121,356

» Sat May 18, 2013 11:26 pm

@newt the circle really isn't the problem - it's the second capx I sent that shows a real-world scenario.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

» Sat May 18, 2013 11:35 pm

Well yeah that presents a new problem, but you could, in theory, make a list of the distance needed for each angle.

Edit:
let me be clear. I'm talking about not using any portion of the platform behavior.
Rather making your own movement with trig using the layout angle, and the players x, and y.

x = playerX + cos(layout.angle) * distance
y = playerY + sin(layout.angle) * distance

All this would be doing is altering the distance based on how the player acts.newt2013-05-18 23:42:42
B
173
S
50
G
194
Posts: 8,560
Reputation: 121,356

» Sun May 19, 2013 12:05 am

@newt I understand what you're getting at, but it's just not practical for a game of any scale, really.

I have a method at the moment that glues the player in place on the ground when its x vector is small enough and no controls are being pressed. However, that doesn't help the fact that going around the object in one direction will be faster than the other, and it has some other picking flaws.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,739

» Sun Jan 31, 2016 2:54 am

sqiddster wrote:I've been pondering an issue regarding rotating platforms.

Now, we all know that Constuct 2 handles horizontal, vertical, and diagonal moving platforms beautifully. However, if you have a look at this capx you will see that Construct 2 can't handle rotating platforms at all. The player slides along the ground unnaturally, and it takes longer to circumnavigate the sphere in one direction than it does in the other.

Now, I understand this lack of support as they have relatively little use in games that don't involve gravity shifting. But, I am curious to see how you guys would go about getting a good system up and running.

It gets even worse when your rotating platform isn't a circle, as in this capx. It is using the gravity method I used in AirScape, and the whole terrain is rotating around 1 point. The character moves around terribly and it barely works.

Anyone have any ideas?

B
6
S
1
Posts: 20
Reputation: 464

» Sun Jan 31, 2016 10:57 am

@ricardoguedes21
If your vision so exceeds your ability, then look to something closer.
Moderator
B
140
S
31
G
88
Posts: 5,725
Reputation: 61,441