How do you check the crash in ActionScript 3?
-
Let's say I have a level with objects of different shape. Can you tell me how to conflict? As2 was all very simple.
this.hitTest(object, true);
and it was possible to check the incorrect forms. Show me a similar function in as3hiTestObject
It doesn't work. And I wonder how it is better to check a lot of objects on collision, for example, with the main hero?
-
In order to get the right collisions, I can advise the physical movement. http://box2dflash.sourceforge.net/ ♪ http://www.emanueleferonato.com/2008/10/26/platform-game-basics-using-box2d/ ♪
It's clean as3 with collisions.
There's a way to check the hitTestPoint points, say 2-4 on each side of the facility, but it's a rectangle again. More complex forms are not universal.
A multiplicity of collisions can be carried out through groups/mosses. Burn into enemys/goodies. Then it's simple.
You've got to look up to the ready gambling. For example, most game problems are solved in Flixel - http://flixel.org/features.html. Including working with groups and clashes.