How to Collide FlxTypedGroup<Car> members with each other?
-
I have a group of cars (FlxSprite) that I want to collide with each other, I tried to use FlxG.overlap and FlxG.collide in different ways but nothing seems to work, you can see in the pic the collision boxes and that they overlap,
I use FlxTypedGroup<Car> for the cars group.
-
Are you sure that
FlxG.worldBounds
includes this area? Collisions are only done in that rectangle.
-
@gama11 How can I be sure? I didn't set the world-bounds so it's set to default.
-
@sangress_ The initial worlbounds only cover a window-sized area. Based on the screenshot, this looks like the sort of game where you might move out of that area quickly?
-
@gama11 I use parallax background using 'FlxBackdrop' and moving the camera, so it might be related?