Game Development Community

Cloning a template with mounted objects

by Chris Serino · in Torque X 2D · 12/13/2006 (9:17 pm) · 2 replies

I'm trying to clone a sprite template that has another sprite mounted on it, but it doesn't clone that mounted sprite. I basically am trying to do what they do with the enemies in the SpaceShooter kit (I think). But without full documentation, it's hard to find just what's making that all tick. Has anyone found a way to do this?

#1
12/19/2006 (9:17 am)
Did you look at the tankbuster demo? They clone the tanks which have two mounted objects. Did you set the sprite AND mounted sprite as templates? (they both need to be)

#2
01/07/2007 (8:34 pm)
If you mounted an object to an object that's a template, a 'template ref' of that parent template should also spawn the mount child (regardless of whether or not it's a template.. which I believe is a bug). Either way, you should be getting that mount child spawned if the mount parent is a template.

More info?