Well between sniper, platformer, and a kind of defence game, I've been making a lot of progress in my re-emergence into Flash.
The only problem is in all three I cant get hitTests to work. Dammit!
Mainly focused on Actionscript and game creation, although always loves making a good, violent movie.
Age 35, Male
Student
Riverdale
New York
Joined on 5/11/08
Posted by Christicle - June 1st, 2008
Well between sniper, platformer, and a kind of defence game, I've been making a lot of progress in my re-emergence into Flash.
The only problem is in all three I cant get hitTests to work. Dammit!
Matt-Porter
How does one code without hitTest?!
if(this.hitTest(_root.nameOfObejct)){
_root.shitHappens=true;
}
if(_root.taco.hitTest(_root.player)){
woot();
}
if(_this.hitTest(_root.player._x,_roo t.player._y,true)){
trace("That was a shapeflag hitTest, it hitTests on the x inside your movieclip");
}
Yay for coding to you at 6 AM when I haven't slept yet, time to go finish my real coding on my game, good luck with the learning of AS, it's good stuff once you come to grasps with it.
Christicle
Thanks a lot, and good luck with [whatever you're doing] too! I've tried probably 6-10 variations on the basic hit test, yet nothing worked. Might as well keep trying!