I still dont get the Shift() proc for icons....
Why wont this work?
obj
var/icon/I = new('maps.dmi',"track")
proc
Track(mob/M as mob)
src.overlays.Cut()
I.Shift(M.dir,1)
src.overlays += I
i call that every time a mob moves. I would think it would keep shifting it, remembering where it was shifted last time, since its a variable stored on the object. So how come it doesnt keep shifting from where it previously was?
The documentation says:
This moves all of the pixels by the specified amount in a direction. For example, Shift(NORTH,1) would move everything one pixel to the north.
So why doesnt it move all the pixels of the I icon in the Mob's direction?
FIREking
ID:150006
Jan 7 2002, 5:12 pm
|
|
A new patch did not get released yesterday. Sorry about that. We'll be making one today though.
--Dan