I tried to add gravity to the NPC to discard pass falls to the ground
offset NPC076
push ebp
mov ebp, esp
setpointer
add npc.Y, 5FF
mov npc.framenum, 0
cmp npc.directive, 1
jmp :render
:render
setpointer
mov edx, npc.framenum
mov npc.displayL, 0
mov npc.displayR, 10
mov npc.displayU, 20
mov npc.displayD, 40
mov esp, ebp
pop ebp
retn
mov esp, ebp
pop ebp
retn
This is the code. What's the problem ??
offset NPC076
push ebp
mov ebp, esp
setpointer
add npc.Y, 5FF
mov npc.framenum, 0
cmp npc.directive, 1
jmp :render
:render
setpointer
mov edx, npc.framenum
mov npc.displayL, 0
mov npc.displayR, 10
mov npc.displayU, 20
mov npc.displayD, 40
mov esp, ebp
pop ebp
retn
mov esp, ebp
pop ebp
retn
This is the code. What's the problem ??
