Question About Sprites

ObstObst Join Date: 2003-03-12 Member: 14436Members, Constellation
<div class="IPBDescription">Do they need to match in length?</div> Do sprites (in certain the muzzleflashX.spr sprites) need to be the same length or not? Cause I'm experiencing problems with a sprite showing up and am bughunting at the moment <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->

Comments

  • MintmanMintman Join Date: 2003-05-30 Member: 16866Members
    When sprites simply don't show up it's often because of the dimensions not being divisible by 8, have you checked them?
  • ObstObst Join Date: 2003-03-12 Member: 14436Members, Constellation
    <!--emo&::tsa::--><img src='http://www.unknownworlds.com/forums/html//emoticons/tsa.gif' border='0' style='vertical-align:middle' alt='tsa.gif' /><!--endemo-->
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    edited July 2004
    No, the sprites don't have to have the same number of frames to work.

    However, if there are too few frames (e.g. eight frames when the original has 12), then the animation will 'replay'. If there are too many frames (e.g. 12 frames when the original has eight), then the animation will end abruptly.
    The above cases are most noticable in sprites that are shown in sequence (like explosions and smoke effects, but <b>not</b> muzzleflash)

    I suspect that the reason you sprite is not working, is because muzzleflash3.spr is not used <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
    muzzleflash1 is for Marine weaponry
    muzzleflash2 is for Turrets and Siege Cannons
    muzzleflash3 is for nothing
  • ObstObst Join Date: 2003-03-12 Member: 14436Members, Constellation
    edited July 2004
    Thank you, perfect information I needed <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
    Adjusted the sprite to be exactly the same, should work now.
    *goes off testin*
Sign In or Register to comment.