home *** CD-ROM | disk | FTP | other *** search
- The Frame Menu
- ==============
-
- Frames refer to the animation frames which are available when using FSP2
- format files. The frame sprites are named by following the sprite number
- with an underscore and the frame number (starting a 0). So, if sprite
- number 7 has 4 frames, the sprite file which you load should contain sprites
- called:
-
- 7_0
- 7_1
- 7_2
- 7_3
-
- In general you should not have missing frames eg just 7_0, 7_1 and 7_3 say.
-
- To use the animation, you should pass a frame number in bits 23-16 of the
- sprite number which you pass to FastSpr in R0. To plot frame 3 of sprite 7
- in pool 4 you would pass R0 = &04030007 to FastSpr.
-
- Remember that animation frames are ONLY available in FSP2 format files, and
- therefore only with FastSpr version 3.00 or greater.
-
- Animation Sequences
- ===================
-
- FastSpr animation can usually be carried out using a steadily incrementing
- number. The table shows which frame will be plotted, depending on the
- frame number which is passed to FastSpr and the number of frames in the
- sprite file for the sprite in question.
-
- Frame number passed to FastSpr in bits 23-16
-
- Number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10| 11| 12| 13| 14| 15|
- of frames | | | | | | | | | | | | | | | | |
- ===========================================================================
- 2 | 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
- 3 | 0 1 2 1 0 1 2 1 0 1 2 1 0 1 2 1
- 4 | 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3
- 5 | 0 1 2 3 4 3 2 1 0 1 2 3 4 3 2 1
- 6 | 0 1 2 3 4 5 5 5 0 1 2 3 4 5 5 5
- 7 | 0 1 2 3 4 5 6 6 0 1 2 3 4 5 6 6
- 8 | 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
- 9 | 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
- 10 | 0 1 2 3 4 5 6 7 8 9 9 9 9 9 9 9
- 11 | 0 1 2 3 4 5 6 7 8 9 10 10 10 10 10 10
- 12 | 0 1 2 3 4 5 6 7 8 9 10 11 11 11 11 11
- 13 | 0 1 2 3 4 5 6 7 8 9 10 11 12 12 12 12
- 14 | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 13 13
- 15 | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 14
- 16 | 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-
- Note that 3, 5 and 9 are special cases. The patterns wrap around after 15,
- ie 16 is the same as zero, 17 the same as 1 etc. It is possible to use more
- than 16 frames but you will need a special version of FSPConv - please apply
- to the author stating your requirements.