use the tab key on your keyboard and quickly run through your script fixing it up, the script isnt that long... alternatively go into the level editor paste your script there and press the style button in the npc window like the way it use to be done before npc server scripting became the new BIG THING
also....
PHP Code:
if(this.plyr.hearts = 0){
this.ani="idle";
}
}
error??? also while = works dont do it!!! instead use this standard
= is for assigning values eg:this.i=4;
== is for comparing values eg:if (this.i==4)
might wanna fix this up
and....
PHP Code:
//#CLIENTSIDE
function onWa****(){
switch(player.dir){
case"0":
triggeraction(player.x+1.5,player.y-2+1.5,"hit");
break;
case"1":
triggeraction(player.x-2+1.5,player.y+1.5,"hit");
break;
case"2":
triggeraction(player.x+1.5,player.y+2+1.5,"hit");
break;
case"3":
triggeraction(player.x+2+1.5,player.y+1.5,"hit");
break;
}
}
learn how to use vecx() and vecy()
triggeraction(player.x+1.5+(vecx(playerdir)*2),pla yer.y+1.5,"hit");
also arent triggeractions ment to have a space for parameters being sent or is this different in gs2?