Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Y-based sprite rendering!
#1
Y-based sprite rendering!! Now 100% free!

Find;
Code:
Call BltPlayer

and replace both the BltPlayer block of code, and the BltNPC block of code with;
Code:
' Blit out players and NPCs
        For Y = 0 To MAX_MAPY
            For i = 1 To PlayersOnMapHighIndex
                If Player(i).Y = Y Then
                    Call BltPlayer(PlayersOnMap(i))
                End If
            Next
            For i = 1 To High_Npc_Index
                If MapNpc(i).Y = Y Then
                    Call BltNpc(i)
                End If
            Next
        Next

This removes the need for BltPlayerTop for larger sprites, and compliments my Dynamic sprite sizes! tutorial perfectly. You can find that tutorial via this link;
http://web.miragesource.com/forums/viewt...124&t=5047

Can use this tutorial freely in your game/engine, as long as you don't claim it as your own. That means you, Frozengod!
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)