Topic: Help with spriting

I've been having trouble determining the frame size and hot spot of this sprite sheet I wrote. So far the "stopped" animation looks fine but everything after that it either out of place or doesn't show anything. I even made a grid that was the (initial) frame size to make sure everything was in the correct spots, but to no success

So here's the sprite sheet
http://i.imgur.com/sKuS187.png

Here's the .spr file

// Sprite created by TheSeventhEmerald's JSpriter

sprite SD_SNC
{
    source_file images/sonic_1.png
    source_rect 0 0 280 798
    frame_size 39 47
    hot_spot 0 47

//Animation stopped
    animation 0
    {
        repeat TRUE
        fps 8
        data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 1 
    }

//Animation waiting
    animation 1
    {
        repeat TRUE
        fps 2
        data 7 7 7 7 7 7 7 8 8 8 9 8 9 8 9 8 9 8 9 8 9 8 9 8
    }

//Animation walking
    animation 2
    {
        repeat TRUE
        fps 8
        data 14 15 16 17 18 19 
    }

//Animation running
    animation 3
    {
        repeat TRUE
        fps 16
        data 21 22 23 24
    }

//Animation looking_up
    animation 4
    {
        repeat FALSE
        fps 8
        data 28 29 
    }

//Animation ducking
    animation 5
    {
        repeat FALSE
        fps 10
        data 35 36 37 
    }

//Animation springing
    animation 6
    {
        repeat FALSE
        fps 8
        data 42 
    }

//Animation death
    animation 7
    {
        repeat FALSE
        fps 8
        data 49 
    }

//Animation drowned
    animation 8
    {
        repeat FALSE
        fps 8
        data 56 
    }

//Animation ceiling
    animation 9
    {
        repeat FALSE
        fps 8
        data 63 
    }

//Animation jumping-rolling
    animation 10
    {
        repeat TRUE
        fps 10
        data 70 71 72 73 74
    }

//Animation pushing
    animation 11
    {
        repeat TRUE
        fps 4
        data 77 78 79 80
    }

//Animation getting_hit
    animation 12
    {
        repeat TRUE
        fps 6
        data 84 85 
    }

//Animation braking
    animation 13
    {
        repeat FALSE
        fps 8
        data 91 92 93 92 91 92 93 92 91 92 93 94
    }

//Animation ledge
    animation 14
    {
        repeat TRUE
        fps 8
        data 98 99 100 101 
    }

//Animation breathing
    animation 15
    {
        repeat FALSE
        fps 8
        data 105
    }

//Animation winning
    animation 16
    {
        repeat FALSE
        fps 8
        data 112 112 112 113 114 113 114 113 114 113 114 
    }

}

And here's the .chr file

// ---------------------------------------------------------------------------
// Open Surge Engine
// http://opensnc.sourceforge.net
//
// File:   characters/surge.chr
// Desc:   character definition: Surge
// Author: OS Team
// ---------------------------------------------------------------------------

character "Sonic"
{
    companion_object                ".snc_companion"
    
    multipliers
    {
        acceleration                1.0
        deceleration                1.0
        topspeed                    1.0
        jump                        1.0
        jumprel                     1.0
        gravity                     1.0
        rollthreshold               1.0
        brakingthreshold            1.0
        slope                       1.0                                                                                                 
        rolluphillslope             1.0
        rolldownhillslope           1.0
    }
    
    animations
    {
        sprite_name                 "SD_SNC"
        stopped                     0
        walking                     2
        running                     3
        jumping                     10
        springing                   6
        rolling                     10
        pushing                     11
        gettinghit                  12
        dead                        7
        braking                     13
        ledge                       14
        drowned                     8
        breathing                   15
        waiting                     1
        ducking                     5
        lookingup                   4
        winning                     16
        ceiling                     9
    }
    
    samples
    {
        jump                        "samples/jump.wav"
        roll                        "samples/roll.wav"
        death                       "samples/death.wav"
        brake                       "samples/brake.wav"
    }
}

Also a side note to KZR, I am using Notepad++ at this point

Last edited by S32X (2016-03-29 03:35:28)

Re: Help with spriting

Make a visible grid of a larger size, say 50x50, and then place you sprites there.

Re: Help with spriting

I decided I'd base my grid of of Tux's spare sprite slots in the sprite sheet and copied the frame size and hot spot. Luckily this time it worked perfectly.

Re: Help with spriting

I'd recommend you to try GraphicsGale, as it can export sprite sheets and lets you align and center your sprites with frame-by-frame or animated preview.

It saved me a lot of trouble with putting sprites on grids and centering them.

https://image.ibb.co/kuSYrm/SD_sml.pnghttps://image.ibb.co/kHq8P6/SeD_sml.pnghttps://image.ibb.co/cJf8P6/LTot_W_sml.png