actionscript 3 - How do I detect collision detection in flash AS3? -


i wanted create maze in flash as3, user guiding character. tried using (below) require me make maze walls individual , setting collision detection each one. there easier way of accomplishing same thing?

monkey.addeventlistener( event.enter_frame, handlecollision)  function handlecollision( e:event ):void {     if(monkey.hittestobject(wall))        {            trace("hit");        }        else        {            trace("miss");        } } 

you can use collision detection kit : https://code.google.com/p/collisiondetectionkit/


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -