Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Actionscript Vets, help out a noob here.
#1
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)
Reply
#2
Well, I'm not that good with the hitTest, it's a bit weird to me. Try this site: http://www.kirupa.com/developer/actionsc...ittest.htm
Reply
#3
http://www.adobe.com/support/flash/actio...ry534.html

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


Forum Jump:


Users browsing this thread: