Skip to content

Comment on How we solved an infamous sliding bugparent

Comments

How does the player with the lower objectID detect that the sliding bug is happening?

In the original version only the higher objectID would react and disable his collision, thus not requiring the lower objectID to detect the problem.

It is not called out, but it looks like they not have both sides call out when a collision occurs, allowing both to turn off in this case.

So the collision occurs, both say "I am going right" and when they hear the other one doing the same they both stop.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.