Data Realms Fan Forums http://45.55.195.193/ |
|
Offset inconsistencies http://45.55.195.193/viewtopic.php?f=1&t=15145 |
Page 1 of 1 |
Author: | Invalidator [ Wed Jun 03, 2009 12:17 am ] |
Post subject: | Offset inconsistencies |
So, I'm working on a simple revolver handgun, and I wanted the magazine to drop out, and insert a new one. So I have the handgun sprite with a hole in the middle, and a sprite for a magazine that fits perfectly inside. However, when I got the offsets correct so that when the gun is placed in the game, it's lined up, anybody that picks it up screws up the offsets. And it changes depending on what direction you are facing. So the resulting relative position of the magazine to the gun is different in 3 different scenarios. Anyone know why this would happen? |
Author: | Grif [ Wed Jun 03, 2009 2:25 am ] |
Post subject: | Re: Offset inconsistencies |
Do you have a large pink (0,255,255) area around your sprite? Is it correctly within the game palette? |
Author: | Invalidator [ Wed Jun 03, 2009 3:41 pm ] |
Post subject: | Re: Offset inconsistencies |
Yeah it is within palette. The only thing I can imagine that might cause it is having an odd number of pixels in height or width. CC seems to change the offsets by 1 when you have an odd height and you flip the sprite. |
Author: | Grif [ Thu Jun 04, 2009 1:31 am ] |
Post subject: | Re: Offset inconsistencies |
DO YOU HAVE A LARGE AREA AROUND YOUR SPRITE? Post the actual file, directly. |
Author: | Deltasquid [ Thu Jun 04, 2009 3:43 pm ] |
Post subject: | Re: Offset inconsistencies |
There should be a 1 pixel pink border around your sprite, no more, no less. It's the easiest way to edit the offsets later on. |
Author: | Invalidator [ Thu Jun 04, 2009 4:11 pm ] | ||
Post subject: | Re: Offset inconsistencies | ||
No, when I sprite I like to leave absolutely no extra space around the image. Nevertheless, I have attached the sprite I am talking about. It almost seems like when CC inverts sprites, they are being adjusted one pixel to the left. It isn't just my sprites either. I've noticed it happening elsewhere in the game with the vanilla content. (ex: Nailgun) It's only ever one pixel, so I doubt anyone really notices, but when trying to get a 3x2 sprite to fit perfectly inside of anther sprite, that one pixel means all the difference. I mean, I got the offsets perfect when the gun wasn't being held, as in when I bought the gun in build mode, the clip was snug inside the pistol. When dropped into the game, it rotated about, no problem. But when an actor picks it up, it's different. I can get it adjusted for either left-held, right-held, or on the ground, but not all three. It's always off by 1. @Deltasquid - Do you really think that having the border would affect my problem? I suppose I can try it. (Not right now, I'm at work)
|
Author: | Deltasquid [ Thu Jun 04, 2009 4:23 pm ] |
Post subject: | Re: Offset inconsistencies |
Invalidator wrote: No, when I sprite I like to leave absolutely no extra space around the image. I'm not 100% sure, but I believe this screwed up my very first mods. It seems to conflict and make CC act random with offsets. Again, not 100% sure, I'm just suggesting you add a border and try again. |
Author: | whitty [ Thu Jun 04, 2009 4:35 pm ] |
Post subject: | Re: Offset inconsistencies |
...What. The extra blank pixels around the sprite has no effect on it whatsoever. |
Author: | Deltasquid [ Thu Jun 04, 2009 4:43 pm ] |
Post subject: | Re: Offset inconsistencies |
Really? Damn. I guess I single-handedly screwed up my first mods then. Ah well, no idea what the problem is. Hope you find out, because it sounds like it'd be very frustrating. |
Author: | Grif [ Thu Jun 04, 2009 10:32 pm ] |
Post subject: | Re: Offset inconsistencies |
Uh, why not just make the sprite one pixel larger so that CC can evenly flip it? Seems like the easiest choice and it's not as though people are going to notice that one pixel. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |