baser
icon ='background.dmi'
icon_state="baser"
density=1
Enter()
if(usr.dir == WEST)
src.density =0
usr.loc=locate(+1,0,0)
if(usr.dir == EAST)
src.density =0
usr.loc=locate(-1,0,0)
basel
icon ='background.dmi'
icon_state="basel"
density=1
Enter()
if(usr.dir == WEST)
src.density =0
usr.loc=locate(+1,0,0)
if(usr.dir == EAST)
src.density =0
usr.loc=locate(-1,0,0)
basemiddle
icon ='background.dmi'
icon_state="basemiddle"
density=1
Enter()
if(usr.dir == WEST)
src.density =0
usr.loc=locate(+1,0,0)
if(usr.dir == EAST)
src.density =0
usr.loc=locate(-1,0,0)
Problem description:I'm currently working on a super mario game and I'm having some trouble. I am guessing that everyone here has play mario before and I was trying to make it so when mario jumps like the the hills he can walk through them. They have density so he can only really walk on the side ones and top one. Heres a picture to show what i'm talking about