Data Realms Fan Forums http://45.55.195.193/ |
|
Need help with offsets. http://45.55.195.193/viewtopic.php?f=1&t=18540 |
Page 1 of 2 |
Author: | Duh102 [ Mon Apr 19, 2010 9:59 pm ] |
Post subject: | 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. |
Author: | Dog [ Mon Apr 19, 2010 10:03 pm ] |
Post subject: | 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 |
Author: | Duh102 [ Mon Apr 19, 2010 10:04 pm ] |
Post subject: | Re: Need help with offsets. |
What do you have for the offsets? |
Author: | Duh102 [ Mon Apr 19, 2010 10:10 pm ] |
Post subject: | Re: Need help with offsets. |
Can you put them in text? I can't see them very well... |
Author: | Dog [ Mon Apr 19, 2010 10:16 pm ] |
Post subject: | Re: Need help with offsets. |
On the image it says ______|x/y Muzzle_|10/1 Support| 4/2 Sprite _|30/6 Joint __|5/3 |
Author: | Duh102 [ Mon Apr 19, 2010 10:25 pm ] |
Post subject: | 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. |
Author: | Dog [ Mon Apr 19, 2010 10:30 pm ] |
Post subject: | 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. |
Author: | Duh102 [ Mon Apr 19, 2010 10:34 pm ] |
Post subject: | 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: Code: Discardable = 0 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. |
Author: | Dog [ Mon Apr 19, 2010 10:36 pm ] |
Post subject: | 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: Code: Discardable = 0 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 ) |
Author: | Dog [ Tue Apr 20, 2010 3:59 pm ] |
Post subject: | 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. |
Author: | Duh102 [ Tue Apr 20, 2010 4:25 pm ] |
Post subject: | 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. |
Author: | Dog [ Tue Apr 20, 2010 4:41 pm ] |
Post subject: | 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.zip Also I have done what you said with the magazine, just the offsets now. |
Author: | Duh102 [ Tue Apr 20, 2010 5:12 pm ] |
Post subject: | 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: |
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |