Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adjusting frame rate to sprites
#1
i want to make my sprite in such a way that breathing takes 9 pictures and in the spritesheet goes in the pattern of the first row 123456789123456789...
from 9 it goes straight to 1
im getting confused how to apply this in datafile
the sprite is the first one of 2 and is corruption_0
    DC-Code:
<bmp_begin>
name: Corruption
head: sprite\corruption_f.bmp
small: sprite\corruption_s.bmp
file(0-69): sprite\corruption_0.bmp  w: 87  h: 92  row: 10  col: 7
file(70-139): sprite\corruption_1.bmp  w: 87  h: 92  row: 10  col: 7
[Image: Blaze340.gif]
Reply
Thanks given by:
#2
here the important stuff:
    DC-Code:
<frame> 0 breathing
pic: 1 next: 302 
<frame_end>
<frame> 302 breathing
pic: 2 next: 303 
<frame_end>
<frame> 303 breathing
pic: 3 next: 304 
<frame_end>
<frame> 304 breathing
pic: 4 next: 305 
<frame_end>
<frame> 305 breathing
pic: 5 next: 306
<frame_end>
<frame> 306 breathing
pic: 6 next: 307
<frame_end>
<frame> 307 breathing
pic: 7 next: 308
<frame_end>
<frame> 308 breathing
pic: 8 next: 309
<frame_end>
<frame> 309 breathing
pic: 9 next: 999
<frame_end>

frames are linked with next:
next: 999 goes back to the first frame when your character is touching the ground
pic: determines the frame of your sprites that will be displayed - the counting starts at 0 in the top left corner and ends with the amount of cells you have specified (with row/col) in the bottom right corner of the last sheet - counting from left to right, top to bottom

edit: i have used weird frame numbers (302 onwards) because you cannot fit that many breathing frames before the walking frames (only 0 to 4)
Reply
Thanks given by: Electric2Shock
#3
Also the first frame (frame 0) picture should be 0 not 1 lol
you can also use frames 0-3 for the start then continue on as YinYin pointed out. That's how Ciryus made Kid Buu fall asleep and heal.
Reply
Thanks given by:
#4
lol i meant pics on the sheet which are 123456789 but thanks anyways
[Image: Blaze340.gif]
Reply
Thanks given by:
#5
Ummm.... YinYim showed you how to do it.... He even started at pic 1 instead of pic 0.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)