-
AS3 Platformer
Hello! I've been searching for a while now, and I cannot seem to find a good AS3 platforming tutorial, that uses freeform axes, or basically letting the character walk on any shape.
I'm mostly having problems with the hit test, I have a map that looks like this:
__________
______________________________________________
any Ideas on how to code the hit tests? An array that checks through? I really am stuck, I've tried this for a few days now, and I'm still stuck.
-
I don't know about AS3, but you can use bitmap hitTest as far as I know (I've never used it though) but of course it has to be a bitmap. The way I use to do it (AS2), is with a "if(hitTest(_x,_y,true))" so it can check in any type of shape. You can place it in the feet of your character and also to the borders so it doesn't check only in the center.
-
Ah yes, I remember that from AS2. Well, I've fixed this in AS3, using exactly that, I actually used the "PixelPerfectCollision Test" code which anyone who has the same problem can get here.
Thanks again Phobik, and man, you should get converted to AS3 already =D