ID:177249
 
I need help on my game. If you want to help, then just answer this. If I'm standing next to a turf thats the same height as me and I press North(), how would i make it so I would go on top of it?

P.S. It's a side-scrolling game and no I dont want to be able to jump.

thanx
DiZzyBonne
<code> var/list/climbDirs = list(EAST=NORTHEAST,WEST=NORTHWEST) client North() for(var/C in climbDirs) for(var/turf/T in get_step(usr,C)) if(T.density) for(var/turf/T2 in get_step(usr,climbDirs[C]) if(T2.density) else usr.step(climbDirs[C]) break </code>
That is probably the best way to do it. Locate() would probably work better, actually, but I dislike it. Also, if you make sure to limit the directions the players can face to just east and west, I know a better way.