Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making Sprites 32/64
#31
Sorry for the necro-post, but I have a fix for this tutorial. For anyone who doesn't want to use only odds or evens, you can do this simple fix (took me awhile to come up with it). It makes it so every 32x64 section on the sprites = 1 sprite

Client Side:
Find in modGameLogic...
Code:
Sub SetPlayerSprite(ByVal Index As Long, ByVal Sprite As Long)
And change that function to...
Code:
Sub SetPlayerSprite(ByVal Index As Long, ByVal Sprite As Long)
    Player(Index).Sprite = Sprite * 2
End Sub

And where he told you to do this:
Quote:Oh yea, in both of the subs, add a * 2 after the getplayersprite(index) in the rec.top line, this make it so each block of 2 is thought of as 1 sprite.
Don't do that; which would make your rec.Top in Sub bltPlayer:
Code:
.top = (GetPlayerSprite(Index) * PIC_Y + PIC_Y)
Sub bltPlayerTop
Code:
.top = GetPlayerSprite(Index) * PIC_Y

Again, sorry for the necro-post...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)