ID:264088
 
Fixed
var/turf/check = locate(per.x,per.y-1,per.z)

per.loc=locate(per.x,per.y-1,per.z)


If you defined something on that loc, why are you defining the loc again ?

Just use:

per.loc = locate(/turf/check)

Or.. (not sure if this works for turfs)
per.loc = check.loc


Also you should learn about boolean variables. They help a lot.

For example, to check if a value is true do:
if(something)

//instead of

if(something==1)

//false values:

if(!something)

//instead of

if(something==0)
In response to Andre-g1
Yeah I know, I'm just used to using == 1 and == 0, anyways my problem still isn't fixed..thanks anyways.
In response to Element Hero creator
What are you calling the Gravity proc from initially?
In response to Naokohiro
I'm calling the gravity proc from movement,btw the spike trap is working perfectly and I tried the same for the black turf and nothing happens.
In response to Element Hero creator
o.O I just noticed that on the map turf was right on top of the black turf, I just put the black turf over it and it's working perfectly. Thanks to everyone that helped out :D.