physics - ActionScript platformer hitTest -


i making 2d side scroller in actionscript , first ever project using actionscript need little help. need able test if there collision , is. example if player hit object on right side of bounding box stop going right , if player jumped on top of object stop falling still able go right because there no collision right of player.

here coding have far player. other object interacts called "plat" http://pastebin.com/0p30ned2

hey should paste code on page helps others in future if need read post. can use hittest task:

         example:  mymovieclip1.hittestobject(mymovieclip2); 

you can use hittestpoint aswell: working tutorials can found here: http://sierakowski.eu/list-of-tips/39-collision-detection-methods-hittest-and-hittestobject-alternatives.html


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -