1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

How do I change the size of animals ,monsters, or items?

Discussion in 'Modding Help' started by FoxyLady, Sep 26, 2014.

  1. FoxyLady

    FoxyLady Haxor Staff Alumni

    Messages:
    193
    I think you have to change some numbers in the config file of the thing you are trying to edit but i don't know which ones exactly to change.
     
    bout likes this.
  2. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    I'll take the shark as an example :

    First, modify its sprite. You can resize it and tweak it as you want, just keep the frame layout.

    Then :
    Here are some parts from the shark.cfg file :
    Code:
    @f32 verticesXY                      = 16.0; 12.0;  
                                         48.0;    12.0;
                                         52.0;    16.0;
                                         48.0;    20.0;
                                         16.0; 20.0;
                                         12.0;    16.0; 
    Basically these are the coordinates of every vertex of the shark collision shape : Looks like x;y; x;y; x;y; etc.
    For example 0;0; 10;0; 10;10; 0;10; will make a 1 pixel large square.
    Multiply them by the resize ratio of each axis. (So if you made the shark as twice as long, multiply per 2 the x coords. If you doubled its size multiply per two all coords, etc)

    Then you have to modify the sprite size :
    Code:
    $sprite_texture                      = Shark.png
    s32_sprite_frame_width               = 64
    s32_sprite_frame_height              = 32
    So you have to modify the size of every frame.
    Here again multiply by the resize ratio. Warning : It must be an integer, so no stuff after the .

    Haven't tried, but it should work if it's properly written
     
    norill and FoxyLady like this.
  3. NinjaCell

    NinjaCell Haxor

    Messages:
    358
    Now to add in the chicken glide ability to make the almighty sky shark.
     
  4. Hella

    Hella The Nightmare of Hair Global Moderator Donator Tester

    Messages:
    1,655
    Moved to Modding Help.