View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:38 am



Reply to topic  [ 3 posts ] 
 Offset Problems 
Author Message
User avatar

Joined: Fri Jun 15, 2012 11:31 am
Posts: 3
Location: France!
Reply with quote
Post Offset Problems
Hi everyone!
I have some issue with my very first actor :/.
It's a AHumain, but it doesn't have the shape of a humain, so I have some probleme with my head's offset. I dont even know what it realy mean, in fact x_x.
If I set the sprit offset at 2;5, it look like this:
Image
The placement is good, but the axe of rotation is totaly messed up:
Image

But if i set the offset at the center of mass, the axe of rotation is right but not the placement.
Image

Can anyone help me please? :smile:


Attachments:
Yoshi.rte.zip [57.67 KiB]
Downloaded 208 times


Last edited by Snowkraft on Fri Jun 15, 2012 10:19 pm, edited 1 time in total.

Fri Jun 15, 2012 5:27 pm
Profile
User avatar

Joined: Fri Jun 15, 2012 11:31 am
Posts: 3
Location: France!
Reply with quote
Post Re: Offset Problems
I think I can handle this myself, but if you think so... :grin: Thanks!

Edit: I'm trying to figure out by mysel how it works, does Spriteoffset and Jointoffset refer to the head, the body or the world?

ReEdit: Wtf, Why 0 is not equal to -0 ?


Fri Jun 15, 2012 10:20 pm
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Offset Problems
Are you also adjusting ParentOffset at all?
Because that's important for rotating attachments, such as a head.

SpriteOffset on the head is the center of the head. As you go down and right from the top left of the sprite, X and Y decrease.
ParentOffset on the head (usually on the copy of it in the body definition) is the connection point of the head to the body, in relation to the body. As you go right and down, x and y increase.
JointOffset on the head is the connection point of the head to the body, in relation to the head. As you go right and down, x and y increase.
SpriteOffset on the body is the center of the body. As you go down and right from the top left of the sprite, X and Y decrease.

Respectively,
-9, -8
5, -4
-2, 7
-7, -6
should be about right for you.

'course this only fixes the neck. With legs that stubby, you're gonna have some trouble making them look right and work.


Sat Jun 16, 2012 1:04 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.063s | 14 Queries | GZIP : Off ]