I'm trying to make bouncy walls using bump(). However, a problem occurs when you bump into two walls at the same time (by bumping into the met corners of two): your velocity is flipped twice.
I can think of a couple ways to solve this, but none are particularly simple, i.e. they would probably create new bugs.
Copyright © 2024 BYOND Software.
All rights reserved.
I ultimately left it in there. For this effect you can do something like this:
That way if you bump two walls, only the first time is vel_y < 0 so it only flips your velocity once.
The alternative is to change the library. The only thing I can think of is to have bump() and bumped() events - the library would call mob.bump(SOUTH) when you bump something in that direction and the default behavior would call atom.bumped(mob, SOUTH) for all the objects you bumped into.