Data Realms Fan Forums http://45.55.195.193/ |
|
Offsets for Dummies http://45.55.195.193/viewtopic.php?f=1&t=8694 |
Page 1 of 2 |
Author: | No_0ne [ Mon Nov 26, 2007 11:00 pm ] |
Post subject: | Offsets for Dummies |
Due to large amounts of requestsone, I am going to make a guide about how to use offsets correctly and not just guess and hope to get lucky. I'm not the best at explaining things, so bear with me. If you don't know the basics of modding or even what offsets are, get out. Seriously. OFFSETS What you see here is the X and Y axis for Cortex Command -X = Right +X = Left -Y = Down +Y = Up The first thing you'll probably notice is that the X axis is switched. Rather than -X meaning left like in the conventional grid, the kind you'll see in Algebra and the sorts, -X mean right and vice versa. The most time you're probably going to need this is when you're changing offsets for that new gun you've just sprited. Most people try not to sprite actors larger or smaller than usual. Imagine that this is your new weapon you've just sprited. You want it so that your clone will hold it properly. Meaning you'll need to fill out these key chucks of code. (the meanings will be in parenthesis) Code: SpriteOffset = Vector (This sets the origin of the sprite, should be in the very middle of your sprite) X = ? Y = ? Code: JointOffset = Vector (The placement of the main hand) X = ? Y = ? Code: StanceOffset = Vector (The placement of the shoulder when carrying the gun) X = ? Y = ? SharpStanceOffset = Vector (The above but when aiming down sights) X = ? Y = ? SupportOffset = Vector (Placement of secondary hand) X = ? Y = ? Code: Magazine = Magazine CopyOf = Magazine SMG ParentOffset = Vector (Where the magazine goes) X = ? Y = ? Code: MuzzleOffset = Vector (Where the bullets fire from) X = ? Y = ? EjectionOffset = Vector (Where the shells, if any, eject) X = ? Y = ? So, how are we going to find the correct coordinates? Easily. First of all, we'll need to set the Sprite offset. Our sprite here is 18 by 10 pixels. Therefore... Code: SpriteOffset = Vector X = -9 Y = -5 Just take half of your sprites dimensions, negate it, and plug it in. That's all you need to know for Sprite Offsets. Simple, right? This bit of code will help you a lot later on. Note: If your sprite Offset has a decimal, just round up. There's no such thing as half a pixel. Now, lets move onto the Joint offset. This will be where the main hand goes. Setting this one up is a bit more trickier. First, make a mark off where you're Sprite offset is, which should be in the middle This is where we will start counting. Start marking how far you want your hand to the left or right. I counted 4. Code: JointOffset = Vector X = 4 Y = ? Remember, +X means left and -X means right. Now count how much you want to go up or down. I counted 3. Code: JointOffset = Vector X = 4 Y = -3 And for whatever reason, JointOffsets and Parent Offsets (Which is what we are currently working on) need to be the opposite of what you want. Why, I do not know. So: Code: JointOffset = Vector X = -4 Y = 3 There, you're done. That's all you have to do to set an Offset. Things you might have missed:
If you're still confused reread it. If you've just reread it and are still confused, then post what you're confused about. ~No_0ne |
Author: | TrouserDemon [ Mon Nov 26, 2007 11:08 pm ] |
Post subject: | Re: Offsets for Dummies |
Instead of counting, use the offset editor program. |
Author: | Falcon X [ Mon Nov 26, 2007 11:09 pm ] |
Post subject: | Re: Offsets for Dummies |
TrouserDemon wrote: Instead of counting, Take the easy way out. Counting = exact measurements. A program can easily ♥♥♥♥ it up if a single number is off. |
Author: | Metal Chao [ Mon Nov 26, 2007 11:11 pm ] |
Post subject: | Re: Offsets for Dummies |
Add this to ultimate modding thing please, it's good. |
Author: | TrouserDemon [ Mon Nov 26, 2007 11:15 pm ] |
Post subject: | Re: Offsets for Dummies |
Not this offset editor, it was made specifically for CC. |
Author: | No_0ne [ Mon Nov 26, 2007 11:19 pm ] |
Post subject: | Re: Offsets for Dummies |
TrouserDemon wrote: Not this offset editor, it was made specifically for CC. And where might this mystical program be? |
Author: | TrouserDemon [ Mon Nov 26, 2007 11:20 pm ] |
Post subject: | Re: Offsets for Dummies |
I'd post it, but I wouldn't know who to credit, ask iwcy. |
Author: | numgun [ Mon Nov 26, 2007 11:38 pm ] |
Post subject: | Re: Offsets for Dummies |
I MEANT ACTOR OFFSETS! Oh whatever, this guide will sure help the other who are lost in the gun offsets. Great work! : ) |
Author: | Control [ Mon Nov 26, 2007 11:40 pm ] | ||
Post subject: | Re: Offsets for Dummies | ||
The guy who made the offset editor is long gone. I believe his name was ScottC, but I'm not completely sure. Here it be.
|
Author: | Prod [ Mon Nov 26, 2007 11:45 pm ] |
Post subject: | Re: Offsets for Dummies |
The offset editor is unreliable and never worked once for me. I don't recommend it being used. Just follow these oh so helpful guidelines. |
Author: | Control [ Mon Nov 26, 2007 11:53 pm ] |
Post subject: | Re: Offsets for Dummies |
It's completely reliable when you learn how to use it. |
Author: | No_0ne [ Tue Nov 27, 2007 12:08 am ] |
Post subject: | Re: Offsets for Dummies |
numgun wrote: I MEANT ACTOR OFFSETS! Oh whatever, this guide will sure help the other who are lost in the gun offsets. Great work! : ) The offsets still apply to actors. The only difference is that Joint Offsets define at what point the sprite rotates on. |
Author: | The Mushroom Man [ Tue Nov 27, 2007 12:35 am ] |
Post subject: | Re: Offsets for Dummies |
Awesome tutorial! This should be stickied! Great Job. |
Author: | purple [ Tue Nov 27, 2007 2:22 am ] |
Post subject: | Re: Offsets for Dummies |
No_0ne wrote: First of all, we'll need to set the Sprite offset. Our sprite here is 18 by 10 pixels. Therefore... Code: SpriteOffset = Vector X = -9 Y = -4 Just take half of your sprites dimensions, negate it, and plug it in. That's all you need to know for Sprite Offsets. Simple, right? This bit of code will help you a lot later on. Note: If your sprite Offset has a decimal, just round up. There's no such thing as half a pixel.[/size] 10 / -2 = -4? |
Author: | No_0ne [ Tue Nov 27, 2007 3:02 am ] |
Post subject: | Re: Offsets for Dummies |
purple wrote: 10 / -2 = -4? Whoops, typo. |
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |