Data Realms Fan Forums
http://45.55.195.193/

Offsets - For the love of god, why?
http://45.55.195.193/viewtopic.php?f=1&t=16654
Page 1 of 1

Author:  Rawtoast [ Fri Sep 25, 2009 5:30 am ]
Post subject:  Offsets - For the love of god, why?

I've spent the last two hours trying to get the offsets right on something. Sprite Offsets + Join Offsets = Kill someone.

What sense does this make?

Image

Author:  CrazyMLC [ Fri Sep 25, 2009 5:31 am ]
Post subject:  Re: Offsets - For the love of god, why?

Offsets need to be fixed.

Author:  Rawtoast [ Fri Sep 25, 2009 5:51 am ]
Post subject:  Re: Offsets - For the love of god, why?

I give up.

I've spent three hours of my night trying to get the offsets right on one single thing. ♥♥♥♥ this.

Author:  Paradox [ Fri Sep 25, 2009 5:56 am ]
Post subject:  Re: Offsets - For the love of god, why?

Are you trying to make offsets for a gun?

Author:  CrazyMLC [ Fri Sep 25, 2009 5:57 am ]
Post subject:  Re: Offsets - For the love of god, why?

When you know which way is which it gets pretty easy.
Stupid thing is that joint offsets and sprites offsets, etc, seem to differ in which way is which. Very confusing.

Author:  Paradox [ Fri Sep 25, 2009 5:59 am ]
Post subject:  Re: Offsets - For the love of god, why?

Well, the joint offset is the hand, but you're moving the gun to that spot.

So if you had -10 x -5 as the sprite offset, moving left 3 and down 2 would give you joint offsets as -3 x 2.
don't ask me why you have to negate them.

Author:  Rawtoast [ Fri Sep 25, 2009 6:26 am ]
Post subject:  Re: Offsets - For the love of god, why?

This is the whole thing so far, as I would like it to be aligned (will have crab legs):

Image

This is the same thing with the biggest bit of armor removed (this is all just a rough sketch - don't judge the sprites):

Image

No head:
Image

Just Head:

Image

I am having an impossible time getting the head to rotate on that limb. Also, to the mods, no it's not a baby. It was going to be, but since the ban threat from Wizard James, I've made it into an angry-looking bald man.

Author:  Geti [ Fri Sep 25, 2009 8:42 am ]
Post subject:  Re: Offsets - For the love of god, why?

SpriteOffset: NEGATIVE numbers that position the sprite so that it is centered. imagine that the vector is moving the sprite, not the offset. basically, divide the dimensions of the image by 2 and make them negative.
JointOffset: done in the normal way (+x is right, +y is down), to where you want it to connect.

Author:  Rawtoast [ Fri Sep 25, 2009 1:10 pm ]
Post subject:  Re: Offsets - For the love of god, why?

Geti wrote:
SpriteOffset: NEGATIVE numbers that position the sprite so that it is centered. imagine that the vector is moving the sprite, not the offset. basically, divide the dimensions of the image by 2 and make them negative.
JointOffset: done in the normal way (+x is right, +y is down), to where you want it to connect.


Oooo.
I did not realize they were opposite. Is that in the wiki? I didn't see it.


And just to clarify, if I want to make the head pivot on that round joint, I make the joint offset at that point?

Also, what's Parent Offset?

Author:  Duh102 [ Fri Sep 25, 2009 1:21 pm ]
Post subject:  Re: Offsets - For the love of god, why?

ParentOffset is where on the sprite you're attaching it to it goes.
Yes, heads, arms, legs, and attachables in general rotate on their JointOffset.

Author:  Rawtoast [ Fri Sep 25, 2009 5:40 pm ]
Post subject:  Re: Offsets - For the love of god, why?

I GET IT NOW.

Yeah, was using sprite offset as if it were parent offset.

Author:  Rawtoast [ Fri Sep 25, 2009 6:37 pm ]
Post subject:  Re: Offsets - For the love of god, why?

The y axis is flipped for joint offsets. That only took me 45 min to figure out.

Update: on another note, Gimp has amazing pixel rotating.

Author:  TorrentHKU [ Fri Sep 25, 2009 11:56 pm ]
Post subject:  Re: Offsets - For the love of god, why?

I've heard so many glorious things about GIMP, I'll finally give it a try, and I just accidentally closed the download for the installer didn't I.

Author:  Geti [ Sat Sep 26, 2009 2:36 am ]
Post subject:  Re: Offsets - For the love of god, why?

the y axis is not flipped. it is always -y up +y down. glad to help though.

Author:  Rawtoast [ Sat Sep 26, 2009 3:06 am ]
Post subject:  Re: Offsets - For the love of god, why?

Geti wrote:
the y axis is not flipped. it is always -y up +y down. glad to help though.


Pretty sure it is for joint offsets. Maybe this is something that is dependent on another variable? Perhaps the relativity of the axis blaaaaaah too drunk to think abou this in a smart way, but there's prob something which makes the y switch things up or something. Going back to the pary.

Baaaai!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/