Tired of waiting?
Click here to disable ads!
You are not logged in. If you sign up for an account,
you can gain additional voting power over time, allowing your vote to have an even
greater impact on submission scores!
tutorial for speed collision
This is a nice tutorial for some really simple Collision Detection but it's also rather slow ans imprecise.
HitTestPoint doesn't work 100% of the time, problems arise while using Vcams and such, hitTestPoint is based on the Rasterized graphics of a MovieClip, doing things like changing the quality can effect it's results.
A much better approach is to create some sort of collision shape and then calculate if the point is in it without using hitTestPoint.
Also using a for loop to continuously check a point is very slow, the fast something moves the more work has to be done, It's better to use lines and calculate collision points, it only needs to do it once per object rather than for as fast as it's going and for every object.
For Beginners or as a smaller project this is a good method to start out with, but soon you'll fine that this is insufficient for anything more complicated.
I am a total newbie at AS3 and this blew my mind...
Great tutorial, man.
If you're interested in helping a newbie, please PM me.
A decent tutorial, but does not need it's own flash.
Snake Re-imagined And Taken To The 3rd Dimension!
Be a badass and go on an epic kung fu quest!
Learn puppet reptile's best ABCs in this physics-driven interactive storybook
newgrounds.com — Your #1 online entertainment & artist community! All your base are belong to us.