$this.moveX(-150); if($this.isTouching(ninja)){ $this.x(800); ($this.y)(424); $this.scene.stopCode() } if($this.x()<0){ $this.x(800); ($this.y)(424); }
if($this.scene.state()=="PLAY"){ createTimer(100, function(){ scoreLabel.text(parseInt(scoreLabel.text())+1) }) }