Southperry.net
Actionscript Vets, help out a noob here. - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14)
+--- Forum: Rubik's Cube (https://www.southperry.net/forumdisplay.php?fid=58)
+--- Thread: Actionscript Vets, help out a noob here. (/showthread.php?tid=6998)



Actionscript Vets, help out a noob here. - Elmo - 2009-01-02

This is a script i use for character movement(not for a game just for fun).
 Spoiler

Now the problem i have is with understtanding hitTests. I was hoping someone could break it down and explain them to me.
Heres a sample code i wish tohve explained:
_root.lol.hitTest(_x,_y+10,true)


Actionscript Vets, help out a noob here. - Loose - 2009-01-03

Well, I'm not that good with the hitTest, it's a bit weird to me. Try this site: http://www.kirupa.com/developer/actionscript/hittest.htm


Actionscript Vets, help out a noob here. - Nikkey - 2009-01-04

http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary534.html

_root.lol.hitTest(_x,_y+10,true) would thus:
returns true if MovieClip lol is overlapping the position (_x, _y+10), else false.