Galaxium III health
From Hack Wars Wiki
int addx=getLocal("addx"); int addy=getLocal("addy"); while(getCollidedCount()>0){ int s=collidedWith(); int objective=getGlobal("objective"); if(getLocal(s,"type")=="player"){ if(getGlobal("shiphealth")>0) setGlobal("shiphealth",getGlobal("shiphealth")+40); destroySprite(); } nextCollided(); } setX(getX()+addx); setY(getY()+addy); |
