Jun 26, 2014 at 9:10 PM
Join Date: Apr 5, 2013
Location: In my mind and of my body.
Posts: 1642
Age: 27
Could you post the code?
Oh and right Aar, I finally remember to do you thing.
You will have to set the frame distance yourself along with the NPC number.
Oh and right Aar, I finally remember to do you thing.
offset NPC---
#define
L_frame_distance = 0
U_frame_distance = 0
sprite_width = 10
sprite_height = 10
#enddefine
push ebp
mov ebp,esp
sub esp,10
xor eax, eax
mov dword [ebp-10],eax
mov dword [ebp-c],eax
mov dword [ebp-8],eax
mov dword [ebp-4],eax
setpointer
cmp npc.direction, 2
jne :render
mov eax, playerYpos
add eax, -1000
mov npc.Y, eax
mov edx, playerXpos
mov npc.X, edx
:Render
mov al, L_frame_distance
mov npc.DisplayL, al
add al sprite_width
mov npc.DisplayR, al
mov al, U_frame_distance
mov npc.DisplayU, al
add al sprite_height
mov npc.DisplayD, al
mov esp,ebp
pop ebp
retn
#define
L_frame_distance = 0
U_frame_distance = 0
sprite_width = 10
sprite_height = 10
#enddefine
push ebp
mov ebp,esp
sub esp,10
xor eax, eax
mov dword [ebp-10],eax
mov dword [ebp-c],eax
mov dword [ebp-8],eax
mov dword [ebp-4],eax
setpointer
cmp npc.direction, 2
jne :render
mov eax, playerYpos
add eax, -1000
mov npc.Y, eax
mov edx, playerXpos
mov npc.X, edx
:Render
mov al, L_frame_distance
mov npc.DisplayL, al
add al sprite_width
mov npc.DisplayR, al
mov al, U_frame_distance
mov npc.DisplayU, al
add al sprite_height
mov npc.DisplayD, al
mov esp,ebp
pop ebp
retn
You will have to set the frame distance yourself along with the NPC number.