Be a Supporter!

Speed Collision Tut AS3

Score:
rated 2.37 / 5 stars
Views:
1,788 Views
Share Links:
Genre:
Tutorial
Tags:
None

Credits & Info

Uploaded
Feb 1, 2014 | 10:21 AM EST

If you liked this, check these out!


Author Comments

tutorial for speed collision

Reviews


JoSilverJoSilver

Rated 2.5 / 5 stars

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.



MirokoMiroko

Rated 5 / 5 stars

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.



FaunSoundFaunSound

Rated 0.5 / 5 stars

A decent tutorial, but does not need it's own flash.