TastyTeo
06-30-2009, 03:47 PM
onClipEvent(enterFrame){
if(this.hitTest(_root.wall1)){
_root.gotoAndStop(2);
}
if(Key.isDown(Key.RIGHT)){
this._x += 3;
}
if(Key.isDown(Key.LEFT)){
this._x -= 3;
}
if(Key.isDown(Key.UP)){
this._y -= 3;
}
if(Key.isDown(Key.DOWN)){
this._y += 3;
}
Can you correct it?
I Want to make a character movement(already made) and when hit wall1 goto play frame 2
if(this.hitTest(_root.wall1)){
_root.gotoAndStop(2);
}
if(Key.isDown(Key.RIGHT)){
this._x += 3;
}
if(Key.isDown(Key.LEFT)){
this._x -= 3;
}
if(Key.isDown(Key.UP)){
this._y -= 3;
}
if(Key.isDown(Key.DOWN)){
this._y += 3;
}
Can you correct it?
I Want to make a character movement(already made) and when hit wall1 goto play frame 2