ID:267689
 
hi

on my map there is water and sky, at the sky part there is an area, it is suposed to move you up then move you back down, like jumping out of the water, like a dolphin.

i tried this;

area
sky
Entered()
usr.loc = locate(x+1,y,z)
usr.loc = locate(x-1,y,z)


but that just moved the mob to the same place all the time and once you had entered it you could just move around how you wished in the sky area

a little help please.

thanks
It moved you to the same area because there was no delay in the locates. Put "sleep(1)" (no quotes) after the first loc, but before the second.
In response to HavenMaster
the problem now is where ever i enter first, then if i go back to other parth of the map, then i go into the sky area, it moves me to where i first entered.
In response to Mousie_kebabs
Try putting this:

usr.loc=locate(usr.x+1, usr.y, usr.z)
sleep(1)
usr.loc=locate(usr.x-1, usr.y, usr.z)

That might help.
In response to HavenMaster
i changed it like you said, i know have this.

area
sky
Entered()
usr.loc = locate(usr.x,usr.y+2,usr.z)
sleep(1)
usr.loc = locate(usr.x,usr.y-3,usr.z)

and i cant even enter onto the area, it is like it had a density or somthing

--------------------------------------

edited.

ok i fixed it i just added more locate()'s and added a delay, thanks for you help :-D
In response to Mousie_kebabs
No problem. I live to serve and to recieve minimum wage.
In response to HavenMaster
lol, here have some invisible wages, just to satisfy you, the things i do, the things i do! lol
One eensy weensy problem. Actually, its a BIG problem. Do not use usr in Entered!!! >:O Use THIS instead.

area
sky
Entered(mob/M)
if(ismob(M))
M.loc = locate(M.x,M.y+2,M.z)
sleep(1)
M.loc = locate(M.x,M.y-3,M.z)


~~Dragon Lord~~
In response to Mousie_kebabs
By changin entered, your canceling the default actions, which include moving the mob into the cell, change your code to this:
area
sky
Entered(var/mob/M)
M.loc=src.loc
M.x++
sleep(10)
M.x--

You can play around it
Note: does arent actual tabs so dont copy paste, if you do change the spaces for tabs