mob
verb
movekeypress(key as num|null)
set hidden = 1, instant = 1
if(lockkey||stun)return
client.keys_pressed++
switch(key)
if(1)client.Keys_Pressed["NORTH"] = 1
if(2)client.Keys_Pressed["SOUTH"] = 1
if(4)client.Keys_Pressed["EAST"] = 1
if(8)client.Keys_Pressed["WEST"] = 1
client.move_dir = key
movekeyrelease(key as num|null)
set hidden = 1, instant = 1
client.keys_pressed--
switch(key)
if(1)client.Keys_Pressed["NORTH"] = 0
if(2)client.Keys_Pressed["SOUTH"] = 0
if(4)client.Keys_Pressed["EAST"] = 0
if(8)client.Keys_Pressed["WEST"] = 0
client.move_dir = Get_Direction()
client
var
move_dir = 0
tmp
keys_pressed = 0
list/Keys_Pressed = new
proc
MoveLoop()
while(src)
if(move_dir)
Move(mob.loc,move_dir)
sleep(world.tick_lag)
New()
. = ..()
MoveLoop()
client
North()
world << "NORTH"
..()
Problem description:
Good afternoon. I'm trying to be able to use client.North() in my pixel movement system but I'm not understanding how it works very well. Any idea on how I could use client.North() with this system?