that's ok but the scorpion thing should have some AI instead of being a movieclip. here's a code where he follows you and attacks you when he hits you
in the scorpions actions
assuming the movieclip that the game is in is called game
onClipEvent(enterframe){
if(this._x < _root.game.player._x){
this._x += 5
}
if(this._x > _root.game.player._x){
this._x -= 5
}
if(this._y< _root.game.player._y){
this._y += 5
}
if(this._y > _root.game.player._y){
this._y -= 5
}
if(this.hitTest(_root.game.player){
this.gotoAndPlay("attack)
}
}
you would also have things like damage and stuff