ID:147318
 
turf/trans
icon = 'icons.dmi'
icon_state = "trans"
Enter(mob/M)
M.x+=1

------------My second attempt------------

turf/trans
icon = 'icons.dmi'
icon_state = "trans"
Enter(mob/M)
M.loc.x+=1


Im trying to make it so when the mob steps on the turf, it will send me forward onto the next trans turf, executing Enter() again. It just acts like a regular turf unless you press the arrow key for -x. Any suggestions?
First, Enter() is blatantly wrong here. More likely than not, that's your problem. What you want is Entered(). Then, just use step(M,src.dir). Then, set the dir to whatever you want.
turf/trans
icon = 'icons.dmi'
icon_state = "trans"
dir = EAST
var/delay = 5 // number of ticks before motion
Entered(atom/movable/O)
spawn(delay) // start a new execution thread
while(O.loc == src)
step(O,dir)
sleep(delay)

This turf will move anything that enters it to the turf that this turf is facing. You can edit the turf's dir in the map maker to create make it push mobs in any direction you like without modifying the code.

It will also keep trying to move a blocked atom until the atom is no longer on the turf.