Custom missile graphics

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Vizth
Commonwealth Pilot
Commonwealth Pilot
Posts: 54
Joined: Mon Sep 04, 2006 12:56 am
Location: Tellico Plains, Tennessee

I understand most of it, my main problem is the facings is there a way to set them or is it stuck at 20?

Thnx in advance
User avatar
Mutos
Militia Lieutenant
Militia Lieutenant
Posts: 218
Joined: Thu Aug 14, 2008 3:31 am
Location: Near Paris, France
Contact:

Hi Vizth,

Try the imageFrameCount attribute in the XML tag <Image>.

I'm not 100% sure because I didn't use it myself but I saw it used in the Transcendence XML sources. Look into AresOrthodoxy.xml, DwargRaiders.xml, EncountersVol01.xml, StdExplosions.xml, StdWeapons.xml and SungSlavers.xml. A likely candidate for multiple examples is StdWeapons.xml, of course !
@+

Benoît 'Mutos' ROBIN
Hoshikaze 2250 Project
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

the imageFrameCount can support any number you want (well, i never tried anything larger than 50) and is used for animations of the missile or the effects.
the images are positioned horizontally in the resource files
Frame1-Frame2-Frame3-etc...

---

If the image is torpedo like and needs to be faced correctly following the playerShip facing, an additional variable is added to the <Weapon> tag: directional = "true". This variable tells Transcendence that the <Image> tag has 20 facing.
The images are stacked vertically and MUST be 20.
Frame1
Frame2
Frame3
...
Frame20

---

The two can be combined also, making an animated directional missile.
User avatar
Vizth
Commonwealth Pilot
Commonwealth Pilot
Posts: 54
Joined: Mon Sep 04, 2006 12:56 am
Location: Tellico Plains, Tennessee

Thanks, Got a rough version in game now.
:D
Post Reply