"Platform" Behavior, Collision Bug

Bugs will be moved here once resolved.

Post » Sat Oct 20, 2012 9:06 pm

Hi :),

Here's a bug I found while using the "Is by wall" condition. For some reason, the block ends getting stuck, when collisions are detected, in a random way.

According to the actions, the block should reverse its direction when a "wall" collision is detected. This does happen for a while, until it gets stuck.

I hope this is useful.

.capx ? http://db.tt/r4wUbTpz

Good luck!
B
9
S
2
G
3
Posts: 10
Reputation: 2,725

Post » Mon Oct 22, 2012 3:24 pm

I don't think this counts as a bug, since it's by design that the Platform behavior stops you (sets vector X to 0) when it detects it has run in to a wall. Because you multiply vector X by -1, when it gets stopped and set to 0 it never gets going again.

Just use two events:
Has wall to left - set vector X to 256
Has wall to right - set vector X to -256

This seems to work fine. Closing as won't fix.Ashley2012-10-22 15:24:41
Scirra Founder
B
357
S
214
G
72
Posts: 22,945
Reputation: 178,206

Post » Fri Oct 26, 2012 8:07 pm

Oh, ok.

Didn't know that it was designed that way.

Thank you for your time :).
B
9
S
2
G
3
Posts: 10
Reputation: 2,725


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests