Jump to content

How to adjust the position of the hat relative to the character ?


Recommended Posts

For example, I drew a hat, loaded it in the game. But in the game hat is left or right, up or down. In general, not correct.

Adjustment should be done in Spriter or just in Photoshop to add a empty space?

I can not understand it, even after a few experiments.

Please, explain how this is done.

 

Sorry for my poor english)

Link to comment
Share on other sites

 

For example, I drew a hat, loaded it in the game. But in the game hat is left or right, up or down. In general, not correct.
Adjustment should be done in Spriter or just in Photoshop to add a empty space?
I can not understand it, even after a few experiments.
Please, explain how this is done.
 
Sorry for my poor english)

 

 

You could probably make the adjustments in either photoshop or in spriter, both methods should work.

(Though I'm not positive, since I've never made a hat before)

 

If its too low, try moving the hat up either in spriter or in photoshop.

Link to comment
Share on other sites

You could probably make the adjustments in either photoshop or in spriter, both methods should work. (Though I'm not positive, since I've never made a hat before)   If its too low, try moving the hat up either in spriter or in photoshop.

This is a vary common response. I want to know the exact mechanics and logic of adjustment.

Maybe there are some determinate options ... For example, something like "a picture of hat should be 200x200 pixels". Or something else. 

Link to comment
Share on other sites

This is a vary common response. I want to know the exact mechanics and logic of adjustment.

Maybe there are some determinate options ... For example, something like "a picture of hat should be 200x200 pixels". Or something else.

I'm not exactly sure what you're asking for here.

Wait, are you saying you just used a random image size for the hat? I don't think it works like that.

I'm pretty sure you'll need to find the exact dimensions of a hat used by the game. I think you can find a hats sprite sheet by opening the "atlas-0.tex" file of a hat in the game's "anim" folder.

Link to comment
Share on other sites

The hat's position on the head is determined by its pivot point in its swap animation.

 

In Spriter, you click on the image of the hat to select it.  By default, the pivot starts in the upper left corner.  You'll see a red dot there.  If you move the mouse pointer up to that corner the dot will expand and you can reposition it by dragging and dropping it, then right-clicking to bring up a little popup menu and choosing the option to reset the pivot point.  This last step is important, and omitting it is a common source of errors.  You'll have to play around with the position by trial and error to get it where you want it.

 

In a text editor, you can edit the.scml file and type in a new pivot point.  Near the top of the file, there's a a series of tags for each image file used in the animation - something like this:

 

        <file id="1" name="myhat.png" width="566" height="363" pivot_x="0.189573" pivot_y="0.35402"/>

 

You want to edit the pivot_x and pivot_y tags.  Again, you'll need to experiment to get the position right.

Link to comment
Share on other sites

Big thanks. Your answer helped me a lot. Especially this.
Now I can move on.)))
 

 

In Spriter, you click on the image of the hat to select it.  By default, the pivot starts in the upper left corner.  You'll see a red dot there.  If you move the mouse pointer up to that corner the dot will expand and you can reposition it by dragging and dropping it, then right-clicking to bring up a little popup menu and choosing the option to reset the pivot point.  This last step is important, and omitting it is a common source of errors.  You'll have to play around with the position by trial and error to get it where you want it.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...