Author |
Message |
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Need help with offsets.
I followed the offset diagram on the CC wiki but after many tries I failed. I need the Sprite Offset, Joint Offset, Support Offset and Muzzle Offset for this sprite: It's 60x12 pixels. Can someone please help?
|
Mon Apr 19, 2010 9:56 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Need help with offsets.
Well first set the SpriteOffset to x = -30, y = -6 (half of the image size) Then, just count how many pixels from that you want the offsets to be, and use that number to make the offset numbers, with - meaning left or up for x or y, and + for right or down for x or y.
EDIT: As in, if the point you want is 3 pixels to the left of the middle of the image (30,6), then your offset would be x = -3, y = 0. If it was 4 to the right and 2 up, it would be x = 4, y = -2.
|
Mon Apr 19, 2010 9:59 pm |
|
|
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Re: Need help with offsets.
What I have should be right, but the gun sprite is way off and it shoots rockets from behind me
|
Mon Apr 19, 2010 10:03 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Need help with offsets.
What do you have for the offsets?
|
Mon Apr 19, 2010 10:04 pm |
|
|
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Re: Need help with offsets.
Here is what I have I can't figure out where to put a minus at the moment On the ones in my script I have SpriteOffset: x = -30, y = -6 JointOffset: x = 6, y = 3 MuzzleOffset: x = -17, y = 1 SupportOffset: x = 3, y = 5 I don't know where I got some of these above numbers from.
Last edited by Dog on Mon Apr 19, 2010 10:16 pm, edited 4 times in total.
|
Mon Apr 19, 2010 10:09 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Need help with offsets.
Can you put them in text? I can't see them very well...
|
Mon Apr 19, 2010 10:10 pm |
|
|
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Re: Need help with offsets.
On the image it says ______|x/y Muzzle_|10/1 Support| 4/2 Sprite _|30/6 Joint __|5/3
|
Mon Apr 19, 2010 10:16 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Need help with offsets.
Muzzle offset should be a positive number since you want the rocket to come out the front, so I would put it at 30, -1 Support, probably 3, 1 Joint, -2, 1 Sprite is fine.
|
Mon Apr 19, 2010 10:25 pm |
|
|
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Re: Need help with offsets.
Duh102 wrote: Muzzle offset should be a positive number since you want the rocket to come out the front, so I would put it at 30, -1 Support, probably 3, 1 Joint, -2, 1 Sprite is fine. Thanks very much, also while i'm here: When the actor fires the rocket, it goes to the second frame, the one with no rocket, but it moves back to the one with the rocket before the actor has reloaded the gun, how do I make it/or is there any way so that the second frame stays until the actor reloads? Also I have tried those numbers but my rpg is still a suicide machine which shoots me in the back, I will stick to the numbers I started off with and go from there, I must've messed something I shouldn't have.
Last edited by Dog on Mon Apr 19, 2010 10:35 pm, edited 1 time in total.
|
Mon Apr 19, 2010 10:30 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Need help with offsets.
Make the magazine have the sprite of however much of the rocket you want to see, and the gun sprite have no rocket at all. Put the magazine into position where the rocket should be on the gun, and add this line to the magazine definition: on the same tab line as HitsMOs (I think it's just one tab, could be wrong). If you did it right and you have only one rocket in the magazine, the magazine masquerading as the rocket will disappear when you fire the rocket and hit reload (usually the same click) and when you reload it you will have another rocket-magazine in it's place. I can help with the offsets if you can't get it to look right.
|
Mon Apr 19, 2010 10:34 pm |
|
|
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Re: Need help with offsets.
Duh102 wrote: Make the magazine have the sprite of however much of the rocket you want to see, and the gun sprite have no rocket at all. Put the magazine into position where the rocket should be on the gun, and add this line to the magazine definition: on the same tab line as HitsMOs (I think it's just one tab, could be wrong). If you did it right and you have only one rocket in the magazine, the magazine masquerading as the rocket will disappear when you fire the rocket and hit reload (usually the same click) and when you reload it you will have another rocket-magazine in it's place. I can help with the offsets if you can't get it to look right. I will go to bed for now, tomorrow I will fix this and make an ak-47 ( making some sort of mod )
|
Mon Apr 19, 2010 10:36 pm |
|
|
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Re: Need help with offsets.
I am now having trouble making the offsets for the magazine now I need it at the front of the gun where an rpg round would be sticking out.
|
Tue Apr 20, 2010 3:59 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Need help with offsets.
Upload the mod and I'll do them. It's essentially the same process, though now you have to make sure the SpriteOffset, JointOffset, and ParentOffset are correct on the magazine.
|
Tue Apr 20, 2010 4:25 pm |
|
|
Dog
Joined: Sat Apr 17, 2010 2:42 pm Posts: 18
|
Re: Need help with offsets.
I have my other guns in this, feel free to check them out http://dl.dropbox.com/u/3952548/SW.zipAlso I have done what you said with the magazine, just the offsets now.
|
Tue Apr 20, 2010 4:41 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Need help with offsets.
Here you go. I fixed up the rpg2, which I assumed from the other offsets is the "better" copy. Attachment:
SW.rte.rar [197.46 KiB]
Downloaded 191 times
|
Tue Apr 20, 2010 5:12 pm |
|
|
|