I'll try again, I need code for action script 2.0 *fuck 3.0*
I can get collision detection when I have my "character" touch a wall, the only problem is that nothing I try will actually stop him from going through the wall, could you help me out?
ps. IF YOUR GONNA GIVE ME SOME DUMBASS INFERIOR REMARK, GO HEAD, PROVE WHAT MY LAST POST SAYS ABOUT YOU!
thank you.
raider00321
try watching porn. always helps.
Nahh
if(this.hitTest(wall))
{
if (this._x < wall._x)
{
this._x = (wall._x - wall._width/2) ;
}
}
its unchecked as im temporarily away fomr flash, but theoretically, it wont be able to walk thru the wall if its on the left side of it. Easily fixed with another if statement. There are better ways of course
4everZer0
thats for the flash...and the advice >.>
:D