[COLOR=black]Hi [/COLOR] [COLOR=black]I am attempting to create a pulse weapon texture but when i discharge the weapon in game all get for my trouble are rectangular white boxes i entered it into the weapon.spr file and specified the sprite in the weapon [/COLOR]ordinance[COLOR=black].[/COLOR] [COLOR=black]what could cause this and how do i rectify it[/COLOR]
i named the texture the same as the sprite and just to check i copied the texture name and pasted it into the weapon.spr and the weapon ordinance
Is your texture the right size? Is there a spelling mistake? Are the numbers mixed up? Check all those things. Oh and post up a copy of the section that contains the weapon in your weapon.spr file :)
my texture is 128x14 and that is what i have told the sprite @reference=128 @tmaterial=additive rburst rburst 0 0 128 14 # Psychonic Blast wpsyblast wpsyblst 0 0 128 21 @anim=tex1x4 # Containment Breach Beam comtainbreach combreach 0 0 128 21 @anim=tex1x4
Hmm.. Check that the weapon ordinance ODF (usually something like cphasero) has the correct sprite. Look for this line //The sprite which is used for this ordinance Sprite = "yourweaponsprite"
if i remember correctly, the texture need to be square and in multiples of 64...64 x 64, 128 x 128, 256 x 256, etc. Recommend you make the texture 128 x 128 and put your weapons graphic in the 'slot' applicable to the sprite
I copied/pasted it into the ordanance from the weapon.spr
It seems to have a problem with the animation sentence 1x4 which requires one line of 128 pixels long and four columns of 32 pixels wide on the texture like matrix in math I think. But I think Pepperman is right using a square : it's easier.