I run into an issue while using SpriteEdit under Wine 7.0 (Stable). When I try to add a frame, a message pops up explaining that it needs to close the program, and subsequently it closes it down. On the other hand, the rest seems to be working fine.
So if you're set in using Wine 7.0, you can still add frames to your sprite (eg. MyFile.sprite) via a text editor, and then open the hand-edited file in SpriteEdit to set (visually) variables, such as the hotspot coordinates, etc.
To give you an idea of what you would need to do, here's a a sprite without frames (named chair.sprite) that I created by clicking the option 'Add sprite'. Then I opened it in a text editor.
; $EDITOR_PROJECT_ROOT_DIR$ ..\..\..\
; generated by SpriteEdit
SPRITE {
NAME="chair"
LOOPING=TRUE
CONTINUOUS=FALSE
PRECISE=TRUE
}
And now I will add a frame by copy-pasting the text part corresponding to the frame, like in the example below. Important: I fill the IMAGE variable with the location (within the project) where the wouldbe frame image is located; in this case: IMAGE = "tutorial\gfx\chair.bmp"
; $EDITOR_PROJECT_ROOT_DIR$ ..\..\..\
; generated by SpriteEdit
SPRITE {
NAME="chair"
LOOPING=FALSE
CONTINUOUS=FALSE
PRECISE=TRUE
FRAME {
DELAY = 0
KEYFRAME=FALSE
IMAGE = "tutorial\gfx\chair.bmp"
HOTSPOT {0, 0}
EDITOR_SELECTED=TRUE
}
}
That's it. chair.sprite is ready to be opened in SpriteEdit, where I can set the hotspot coordinates of such frame, and other settings.
The same method can be applied to multiple frame sprites. Here you can see the finished version of walk.sprite portraying the character Molly walking in the dd direction:
; generated by SpriteEdit
; $EDITOR_PROJECT_ROOT_DIR$ ..\..\..\..\
SPRITE {
NAME=""
LOOPING=TRUE
CONTINUOUS=FALSE
PRECISE=TRUE
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\00.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\01.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\02.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\03.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\04.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\05.bmp"
HOTSPOT {50, 250}
EDITOR_SELECTED=TRUE
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\06.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\07.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\08.bmp"
HOTSPOT {50, 250}
}
FRAME {
DELAY = 90
MOVE {0, 8}
KEYFRAME=FALSE
IMAGE = "actors\molly\dd\walk\09.bmp"
HOTSPOT {50, 250}
}
}