with (findimg(5)) { x = player.x + 5; y = player.y + 5; this.ani = "idle" this.dir = 1; this.layer = 1; this.playerlook = false; actor.headimg = playero.headimg; actor.bodyimg = playero.bodyimg; actor.shield = playero.shieldimg; }