Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Dynamic sprite sizes!
#10
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 ^^
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.^^.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)