02-02-2009, 01:55 PM
1problem when adding this though for players it works just fine but npcs there characters walk in reverse 0.0 in stead of the spirit there expose to use the rendering reverses there spirits. any idea?
NVM i fixed it heres the fix if it happens to you too.
NPC side fix ^^
And remove the
Its is not needed and you can remove the dim Spiritleft as long as well.^^.
NVM i fixed it heres the fix if it happens to you too.
NPC side fix ^^
Code:
With rec
.Top = 0
.Bottom = DDSD_Sprite(Sprite).lHeight
.Left = (MapNpc(MapNpcNum).Dir * 3 + Anim) * (DDSD_Sprite(Sprite).lWidth / 12)
.Right = .Left + (DDSD_Sprite(Sprite).lWidth / 12)
End With
And remove the
Code:
Select Case GetPlayerDir(Index)
Case DIR_UP
spriteleft = 0
Case DIR_RIGHT
spriteleft = 3
Case DIR_DOWN
spriteleft = 1
Case DIR_LEFT
spriteleft = 2
End Select
Its is not needed and you can remove the dim Spiritleft as long as well.^^.