Kelna
02-27-2005, 07:35 PM
Ok, so i read the hit test tutorial in the tutorial section, and i downloaded the file, and I made my own little hit test and moving ball, but for some reason the hit test wasn't working right. So, I copied and pasted the wall code and the wall into my flash movie for further inspection. I reread the tutorial and it said that I needed to name my wall well "Wall" but the wall in teh tutorial was named "Symbol 2" I've been fiddling around with the code, and i still can't get it. Could someone explain how i can use hte hit test? heres my code that i copied:
if (hitTest(_level0.wall)==true) {
_x=_x-12.5;
}
This code works for the "Symbol 2" but i cant figure out how to make it work for "Symbol 3", and yes these are all movie clips.
if (hitTest(_level0.wall)==true) {
_x=_x-12.5;
}
This code works for the "Symbol 2" but i cant figure out how to make it work for "Symbol 3", and yes these are all movie clips.