Weird Bugs

Posted by (twitter: @SirGFM)
May 3rd, 2013 9:46 am

During the compo, I ran into a bug that made two pushable box (which should collide and stop) run over each other.  I’ve been trying to fix that, but now nothing makes sense anymore… The gif bellow can better show it (and also show a new stage! :)).

gfm_ld26_box_bug2

As you can see, the first time it collides perfectly… but the second time (which should be the exact same situation), they overlap each other… One thing that I was able to notice (after dumping some frame-by-frame information to a .txt file… >_<)  is that there may be a relation with their order in the object list (FlxGroup, if you’ve ever used Flixel).

Ok, this gave me a (stupid) idea. I’ll check which is the left most one and pass that as the second object to the collision method (FlxObject.separate). I’ll post soon with results. Obviously, it didn’t work. ¬¬

Tags: , , ,


Leave a Reply

You must be logged in to post a comment.

[cache: storing page]