[R90] Platform behavior speed on rotated floor

Bugs will be moved here once resolved.

Post » Sun Jun 10, 2012 11:27 pm

B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Mon Jun 11, 2012 2:31 pm

Please see how to report bugs. Could you remember to always include the source .capx? It's much easier to work with, since I can verify any code changes I make fix your particular example.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Jun 11, 2012 3:46 pm

Sorry, wont happen again.
Here's CAPX

The speed, while walking from right to left on rotated platforms (both solid and jumpthru behaviors tested) gives player 2x speed (at least it looks so)
Release 90 x64
Windows 7 Home Premium x64 (autoupdate is ON)
Not browser related, tested:
Chrome 19
Firefox 12
IE 9.0.8
Opera 11NugMan2012-06-11 15:49:10
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Tue Jun 12, 2012 12:37 am

Ashley, i somehow destroyed new capx, but i've compiled it so you can test it again https://dl.dropbox.com/u/13529564/Scirra/Moonwalker%20bug%202/index.html

Aniway, if you fill change timescale in my previous CAPX (look my previous post), you will see, that even if you set timescale to, for example, 0.2 - the bug still appears at the same speed as if timescale is set to 1.0NugMan2012-06-12 00:39:31
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Wed Jun 13, 2012 5:21 pm

This is really weird. I've checked and double-checked the Platform code and it treats left and right with the exact same piece of code. And yet in this example left and right go at different speeds on slopes.

I'm stumped. Have you found anything that affects this at all?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu Jun 14, 2012 10:38 am

@Ashley.

By the moment I can say that the more angle on the right platform, the more speed I can get. When I moving (climbing or going down doesnt matter) from left to right my speed is calculates considering my angle of motion. When I move from right to left my speed calculates without angle of motion - it just speed of Vector.X (I can only guess - im not a programmer).

One more interesting thing - while going from left to right with timescale<1 I can move only pixel or two, then I stuck, like it's too high for me. But I can move down - the effect is the same - I just stuck, though there's no sense to do that.
So the bug is timescale-dependant.

Try this:
CAPX
Exported ProjectNugMan2012-06-14 11:02:58
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Thu Jun 14, 2012 12:36 pm

Maybe its not important, but when I set platform maximum speed to -100, my sprite constantly moves to the left. If I press right, nothing happens, if I press left - sprite tries to stop itself.

Also if gravity is set to negative value (when I falling in the sky), and there's angled ceiling, the bug does the same thing - I gain more speed, while moving from right to left (as when gravity value is positive)NugMan2012-06-14 12:40:25
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Fri Jun 15, 2012 4:56 pm

Aha, I found a way to fix it. Should have something in the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Closed bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests