Smbx 1.4.5: Mistakes 15(2)
Posted: 20 Sep 2020, 7:41
1)
In the Level - Start event I put this script:
It works in all cases(when the player is hurt), except:
*When the player is char(x).id=0 or char(x).id=1; and/or
*When the player is in a clown car(char(x).itemslot=-4)
2) Lag(fixed)
NPCs that use variable declarations in their scripts are ignored, and cause lag when the debugger window is active.
dim s as integer
with npc(sysval(param1))
end with
In the Level - Start event I put this script:
Code: Select all
char(1).hitpoint=3
dim s as integer
do
if char(1).hitpoint<s then v(c0)+=1
s=char(1).hitpoint
call sleep(1)
loopIt works in all cases(when the player is hurt), except:
*When the player is char(x).id=0 or char(x).id=1; and/or
*When the player is in a clown car(char(x).itemslot=-4)
2) Lag(fixed)
NPCs that use variable declarations in their scripts are ignored, and cause lag when the debugger window is active.
dim s as integer
with npc(sysval(param1))
end with
