Code:
tech_elf
//step_size = 3//4
move_speed = 3
move_slide = 1
icon = 'retroZ/Characters64.dmi'
icon_state="tech elf"
pixel_x = -24//25//26//32
pixel_y = -16//32
bound_height=30//32
bound_width=16
density
icon='area1.dmi'
density=1
allow_slide=1
var
terrain=null
Enter(mob/player/p)
if(terrain)
if(terrain in p.terrains)
return 1
else
return 0
else
..()
Hey everyone!
I recently updated a project from using Ter13's edge slide lib to his movelib. I got everything working pretty well except for edge sliding as well as diagonal movement.
I tried importing similar macros from the old library and attaching the keys to things like .north rather than KEY1 since that's not used in the new lib. This didn't change anything though.
My current thought is that I might need to assign macros to keybinds that are in someway associated with the following:
Utility:
DIR_NORTHEAST defaults to 16.
DIR_SOUTHEAST defaults to 32.
DIR_SOUTHWEST defaults to 64.
DIR_NORTHWEST defaults to 128.
DIR_VERTICAL defaults to NORTH|SOUTH (3)
DIR_HORIZONTAL defaults to EAST|WEST (12)
Although I don't really know! If anyone has gotten edge sliding to work with ter13's movelib, help would be greatly appreciated. Cheers.
EDIT: I tried directly pressing a northeast key, it worked. I cannot however get a up+right key to make me go northeast and still can't edgeslide whatsoever.
Original Edge Slide:
http://www.byond.com/developer/Ter13/EdgeSlideDemo
Edge Slide Documentation:
http://www.byond.com/forum/?post=1467754&hl=edge%20slide
New Movelib:
http://www.byond.com/forum/Ter13/MoveLib
Movelib Documentation:
http://www.byond.com/forum/?post=2199604
Also, EdgeSlide is already severely outdated.
My current replacements don't really exist though.