There is no method with the name 'resetScore'.
There is no method with the name 'resetHealth'.
There is no method with the name 'updateHealth'.
Help please?
onClipEvent(load){
speed = 10;
}
onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
_x -= speed;
}else if(Key.isDown(Key.RIGHT)){
_x += speed;
}else if (Key.isDown(Key.UP)){
_y -= speed;
}else if (Key.isDown(Key.DOWN)){
_y += speed;
}
}
Try this code i use it and it works