PDA

View Full Version : Platformer hit tests


Fanboy
09-20-2008, 04:47 AM
Ok i want to make my first platformer. I can handle scripting the player just find, my issue is mainly with hit tests, i need to have a few things accomplished:


I need hit tests that are not limited by the bounding box but actually realize when the two objects are touching visible pixels.




I want the ground hit test to incoorperate many surface, not just one. I hear this can be done as a loop to find the mall but I'm not sure how to best write it. A better alternative is if I can get the above working, I could make the ground one movie clip and have it's visible pixels define it's shape and only do 1 hittest.



If you walk at an angle your character walks up the surface


Please help me. I've been through tons of tutorials and none of them cover multiple surfaces or the hittest i need, at least not in a coherent matter, they are either horribly written and explained or so advanced they're just beyond what is needed.

If someone could make a very simple .swf that has a round player able to land on a platform and land on another I would be very thankful!