|
-
Flash Intermediate
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.
In the process of designing a quirky little game engine called gulp. Check out it's progress below: @ my blog.
---
Check out my blog at XenElement.com
-
President
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.
 This is MC. His _parents sent him to stop() by the super market to buy some _root beer if he wanted to gotoAndPlay() with his friends at the park later.
This is my Blog!... The gaming Process
Please check out my site: Giddel Creations
-
Flash Intermediate
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
In the process of designing a quirky little game engine called gulp. Check out it's progress below: @ my blog.
---
Check out my blog at XenElement.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|