This is my first attempt on making a milti Tiled mob. There is no coding error, but for some reason the top part of the character doesn't show up.
mob/Login()
usr.loc=locate(1,1,1)
usr.overlays+=/obj/characterhead
client
North()
var/atom/T=locate(mob.x,mob.y+2,mob.z)
if(T){if(T.density){return};else{return..()}}
if(world.maxx==usr.x+1)return
West()
var/atom/T=locate(mob.x-1,mob.y+1,mob.z)
if(T){if(T.density){return};else{return..()}}
else return ..()
East()
var/atom/T=locate(mob.x+1,mob.y+1,mob.z)
if(T){if(T.density){return};else{return..()}}
else return ..()
obj/characterhead
icon = 'Characters.dmi'
icon_state="LockeWalk2"
layer=MOB_LAYER+2
pixel_y=32
Copyright © 2024 BYOND Software.
All rights reserved.
Well, first off...don't use "usr" in Login() it's incorrect, usr src instead. And, you don't need all that extra crap...it's just not needed. Just use the src.overlays+=/obj/characterhead
nothing else is needed...