-
[CS3] need help hittest
i made my character for a game and i made walls which work here is the code
onClipEvent (enterFrame) {
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
}
but half of my character still goes through the wall before it acutally calls the code
how do i stop this? :confused:
please help
thanks Hopies
-
I usually use
if (this.hitTest(_root.wall)){
//do stuff
}
I find it a bit more efficient.
-
now my character dont move at all should i add that the wall is one movieclip in the shape of a maze
-
can anyone HELP please thanks