W
name = "wall"
icon_state = "W"
Enter()
call(contents:mob,mob.icon.Shift)(WEST,4)
return ..()
Exit()
call(contents:mob,mob.icon.Shift)(EAST,4)
return ..()
Problem description:
I am trying to make the icon so when it is entered the mob the mob of the icon is shifted, but I couldnt figure out how to reference the shift proc or the mob icon itself. This is what I have.
You shouldn't need to use call() in this situation.
I really don't see the need to use Shift() when you can set the pixel_x of the item. Using this might not be the best thing for what you want. A better way to do it is just to set pixel_x.
Use whichever fits what you need. If you actually need to shift the icon, then use the above one.
~~> Dragon Lord