ID:176149
 
Ok, I need help with a slight problem.

mob/player
human
red
icon = 'red.dmi'
density = 1
Bump(obj/ball/M)
M.loc=locate(M.x+1,M.y,M.z)


at the bolded part, is my problem. I need it so than instead of it going in one direction whenever I bump it, it will go in the direction I bumped it from. Anyone knows how to do this?

~ Jermman
Jermman wrote:
Ok, I need help with a slight problem.

mob/player
human
red
icon = 'red.dmi'
density = 1
Bump(obj/ball/M)
M.loc=locate(M.x+1,M.y,M.z)


at the bolded part, is my problem. I need it so than instead of it going in one direction whenever I bump it, it will go in the direction I bumped it from. Anyone knows how to do this?

Try:
step(M,dir)
Since src is the player, src.dir is the direction the player tried to move.

Lummox JR