Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

I need help with the spritesheet


elmaster20
 Share

Recommended Posts

Hi guys i want to start again an older game of DBZ that i had made with some friends, so i need to know if i there is a way to use the old spritesheet (it´s attached), because i have to divide all the sprites and i don´t have so much time to do it (i have to work and go to the university), the spritesheet is bigger than the attached but is just an example of my spritesheet, i need to know how to use that spritesheet to make characters and npc´s, thanks and sry for my english
Link to comment
Share on other sites

It's actually under DrawPlayer my mistake

Where it does

' Set the left

    Select Case GetPlayerDir(Index)

        Case DIR_UP

            spritetop = 3

        Case DIR_RIGHT

            spritetop = 2

        Case DIR_DOWN

            spritetop = 0

        Case DIR_LEFT

            spritetop = 1

        Case DIR_UPRIGHT

            spritetop = 7

        Case DIR_DOWNRIGHT

            spritetop = 6

        Case DIR_UPLEFT

            spritetop = 5

        Case DIR_DOWNLEFT

            spritetop = 4

(Ignore that mine has DIR_UPRIGHT etc and numbers higher than 3, because I have 8 way movement and 8 way frames so there's a diagonal frame)

The spritetop here, is what frame we're picking out of the PNG to use for that animation. What you'd want to do is change it so that it always uses 0 as the Top Pixel, and changes the Left in with With Rec to something like .Left = spriteleft * (Tex_Character(Sprite).Width / # of Frames here)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...