Animated shield graphic

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

does anyone know how to make an animated shield graphic?
It appears the usual method of adding frames to the image code doesn't work

Code: Select all

			<ShieldDisplay>
<Image imageID="&rsAlphaShields;" imageX="0" imageY="0" imageWidth="136" imageHeight="136" imageFrameCount="2" imageTicksPerFrame="2"/>
				</ShieldDisplay>
That should be animated, but doesn't appear to.

EDIT: Oh, I'll attach the graphic for all to use if it's proved possible. Nothing special though, just a shield that changes colour as it gets hit then (if the animation was working) flashes "warning" when it's down
Last edited by evilbob on Fri Aug 01, 2008 11:11 am, edited 1 time in total.
Yugi
Fleet Officer
Fleet Officer
Posts: 1027
Joined: Sun Mar 05, 2006 8:21 am

You might want to try something similar to the Domina Sustain animation, not that I know how it works.
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

that's just a standard animation, so it won't help.
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

A long shot...
try setting imageTicksPerFrame="2"
to
imageTicksPerFrame="6" (or greater to slow the rate down)

Also, you have imageWidth="136" imageHeight="136"
Assuming you have the shield image including all frames that size? Or is that the primary section of it (like standard shields display)?
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

as I said, it's essentially a recoloured standard shields display.

I'll try the image ticks modification in a moment.

EDIT: nope, that didn't work
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

Ah! There's your problem... One column! You need two in order to make it animated, as per your config there.

imageFrameCount="2" means that two frames are being used, or should be. Since you only have one, only one will show.
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

I have two columns, like the animated ship I did a while back. I have enough experience not to make that mistake.
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

Well then, as you said, it would appear that the shields display code does not recognize or utilize animation. George would have to answer this one I suppose.

Addit; What are the demensions of your graphics file? ...just curious.
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

272 x 816
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

BTW, version 0.99b will honor a <HitEffect> on shields.
User avatar
evilbob
Militia Captain
Militia Captain
Posts: 555
Joined: Sun Mar 05, 2006 1:23 pm

ohh, I can't wait! That will be a fun effect to play with.
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

george moromisato wrote:BTW, version 0.99b will honor a <HitEffect> on shields.
really!? :D Now I can add more shield hit effects!
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
schilcote
Militia Captain
Militia Captain
Posts: 726
Joined: Sat Feb 02, 2008 7:22 pm

Can it be different depending on the type of damage that triggered it, like when HyperDestroyer shields get hit by thermo fire it can just turn green a bit, but when lighning cannon (ion I think) damage hits it, it gives a big violent reaction?
[schilcote] It doesn't have to be good, it just has to not be "wow is that the only thing you could think of" bad
Post Reply