ID:148491
 
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
Codesterz wrote:
>>This is my first attempt on making a milti Tiled mob.<br>
>>There is no coding error, but for some reason the top<br>
>>part of the character doesn't show up.<br>


>>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


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...
In response to Goku72
done and still not working.
In response to Codesterz
In response to Garthor
Thanks. I got everything working now!