I’m new to Actionscript and I’m playing around and testing with collisions. I have it working okay, but there are platforms where the player can just jump straight up and through and sometimes can walk straight though when coming from the right.
Here’s my .fla file so you can test it and see the code:
http://www.mediafire.com/?sspz4grjilvvdd6
I think it’s because of the I’ve used points. How can I fix this?
Also, is it true using hitTestObject can sometimes detect collisions when there isn’t actually a collision. That’s why I’ve tried points.
Thanks for the help!
Try this function. All you’ll need is to put your objects inside movieclips and name them.