Announcement

Collapse
No announcement yet.

Sprites

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sprites

    Wondering if I could get answers to a couple of questions regarding Sprites please.

    1) I notice with good sprites, the idle animation seems to play randomely. Is that the case or is there a setting somewhere that will make them all play?

    2) In the animation txt file, there is an animation type;

    ANIM_TYPE 1
    what type of animation is this?
    0 = sequential (play through from
    the first frame to the last defined frame
    1 = looped (starts over at the first frame
    when it's gone through all of the frames
    2 = back-n-forth (reverses direction of playback when
    it reaches the last frame, and plays back to the first
    before reversing direction again.

    Has anyone experimented with trying type 1 or 2? Does 1 end up like the Civ3 worker animation, continually moving?

    Thanks for any help.

  • #2
    Originally posted by stankarp
    1) I notice with good sprites, the idle animation seems to play randomely. Is that the case or is there a setting somewhere that will make them all play?
    I doubt it is randomly determined of which sprite the idle animation is played. It is rather like that that a lot of good sprites don't have an idle animation. Whether goods are animated is defined in the userprofile.txt and that can be changed within the game from the advaced options menu.

    Originally posted by stankarp
    2) In the animation txt file, there is an animation type;
    Where can I find this file?

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

    Comment


    • #3
      It's the text file that goes into the makesprite.exe.
      Concrete, Abstract, or Squoingy?
      "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

      Comment


      • #4
        OK, I found it.

        According to the source code there are two animation types:

        Code:
        enum ANIMTYPE {
        	ANIMTYPE_SEQUENTIAL,
        	ANIMTYPE_LOOPED,
        
        	ANIMTYPE_MAX
        };
        This means ANIMTYPE_SEQUENTIAL quals 0 and ANIMTYPE_LOOPED 1. How the two animation types are handled internally I can't say.

        -Martin
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • #5
          Yes, I have animate goods on.

          I can say definitely that not all goods WITH AN IDLE ANIMATION play each turn. I went through and made new idle animations, horses, wheat, buffalo, rice, dates, cotton, so now there a few more. When I pan round the map, not all of them play, it looks like random types are selected for that turn. e.g. all the elephants and buffalo may animate in a turn. The maximum may be about 4 different types in a turn.

          What Martin says makes sense, because even cities have animation type 1. This is as well as units and goods.

          So, maybe the text is wrong and there are only 2 animation types. Animation type 1 is actually 0 (sequential), so therefore I should be trying type 2, which might be looped.

          Ben, is your old email still playing up? Did you get my email of 29.10.04? Do you have a new address?

          Comment

          Working...
          X