client
Northwest()
var/mob/monster/M = new (usr.loc,usr)
M.dir = usr.dir
step_towards(M,usr)
Anyways, whenever I create the mob, it doesn't follow. :9
Would I do this by using step_to, or a totally different thing?
What I mean is...
O = Player
M = Monster
X = Ground
XXXXXX
XXXPMX
XXXXXX
That's the player going left.
XXXXXX
XXXPXX
XXXMXX
And that's the player going up. ;o
How would you go about doing that?
1) Stop using usr in proc's.
2) Make the Monster(or what seems more like a pet) have it's own proc to follow a player.
To do so, you can set a variable to the monster indicating who it has to follow(in this case the Player). Then in the monster's new proc, spawn a proc which constantly follows(using step_towards) the variable(the player) and then loops itself(using while?), but make sure you put a sleep() in the loop, or it'll create major lag up to a point the game crashes.
3) You dont need M.dir = usr.dir.