I'm sorry, I know I just bumped this. But this recent problem is bugging the crap out of me!
What am I missing here that is making this not work!?
onClipEvent(enterFrame)
{
var ox=_x, oy = _y;
if(Key.isDown(Key.RIGHT))
{
_x+=4;
}
if(Key.isDown(Key.LEFT))
{
_x-=4;
}
if(Key.isDown(Key.DOWN))
{
_y+=4;
}
if(Key.isDown(Key.UP))
{
_y-=4;
}
for (i=0; i<100; i++) {
if (_root["object"+i].hitTest(_root.char._x,_
root.char._y,true)) {
_x=ox; _y=oy;
}
}
for (i=0; i<100; i++) {
if (_root["enemy"+i].hitTest(_root.char._x,_r
oot.char._y,true)) {
_x=ox; _y=oy;
}
}
}
Help please! :(