Can you change the framespeed of an NPC via scripts?
Posted: 23 Jul 2021, 6:34
The title says it all
Official Community of WohlSoft Team
https://wohlsoft.ru/forum/
Code: Select all
With npc(Sysval(Param1))
.curtimer += 1
If .curtimer = 17 Then .curtimer = 1
If .curtimer <= 8 Then
.curframe = 3-2*.facing
Elseif .curtimer <= 16 Then
.curframe = 4-2*.facing
End if
End with
Code: Select all
With npc(Sysval(Param1))
.curtimer += 1
If .curtimer = 17 Then .curtimer = 1
If .curtimer <= 8 Then
.curframe = 1
Elseif .curtimer <= 16 Then
.curframe = 2
End if
If .facing = 0 Then .curframe += 2
End with