How do I make a proper rotating platform?

Get help using Construct 2

Post » Sun Nov 16, 2014 3:30 am

I've been having an issue with a very basic mechanic I'm trying to implement in my game.

It's a platform that rotates 180 degrees every X seconds. On one side, there are spikes (red side) and on the other, the player can land, no problem.

It works just fine sometimes, for some moments and eventually, this happens : Image
Often, it gets to this point or worse Image

However, what I want is for my platform to rotate and stay perfectly horizontal each time it does. Anyone has a better way to do this... or just a way that works? As silly as this may sound, I just can't get it to work without issues.

These are my events :
Image
I've tried different variants of this and the problem remains.
B
35
S
9
G
3
Posts: 493
Reputation: 4,092

Post » Sun Nov 16, 2014 4:33 am

Probably non-consistent frame rate. Here's one that works
Image
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Sun Nov 16, 2014 4:42 am

Cow, you da real mvp. Thanks man!
B
35
S
9
G
3
Posts: 493
Reputation: 4,092

Post » Sun Nov 16, 2014 6:11 am

Alvarop and I were discussing a problem with my previous attempt at this which broke if there were multiple platforms starting at 0 or 180 degrees. Image The On created, set angle to 180 is required due to something weird in C2 that was creating the platforms at 180.00000500895632 degrees (will be reporting to bugs section.
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Sun Nov 16, 2014 6:18 am

Yes, that is the true solution to this problem. Please disregard my first comment. Well, not really, Cow is still da true mvp.
B
35
S
9
G
3
Posts: 493
Reputation: 4,092


Return to How do I....?

Who is online

Users browsing this forum: trueno20 and 17 guests