Rotating platforms don't work

Get help using Construct 2

Post » 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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » 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
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » 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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » 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.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » 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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » 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
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » 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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » 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?


You can send link again?
B
6
Posts: 20
Reputation: 314

Post » Sun Jan 31, 2016 10:57 am

@ricardoguedes21
This thread is 3 years old. Did you intend to resurrect this dead thread?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 25 guests