ID:263246
 
Code:


Problem description:

ok i want to know how to make a new obj go one space up from the direction the usrs facing
step(obj,mob.dir)

You might want to look it up to see how to use it better, but I try to make these things so people can't just copy and paste them, so they actually have to learn off them.

-Exophus
mob
verb
Move_object(obj/O in view())
if(usr.dir == NORTH)
O.y++
if(usr.dir == SOUTH)
O.y--
if(usr.dir == EAST)
O.x++
if(usr.dir == WEST)
O.x--


There another way you can do it. But the step way is much easier.

mob
verb
Move_object(obj/O in view())
step(O, usr.dir)
In response to Exophus
i need to make a proc for the step new to them and i want to make it so it makes a new obj strate on top of the turf
In response to Evil Productions
Look up "get_step()". Set it up correctly as outlined in the reference, and then you can pass it as the location to create the object in.