1.5 release - Templated object not un-templating :)
by Phil Carlisle · in Torque Game Builder · 07/11/2007 (10:03 am) · 0 replies
Just noticed while testing an old "game" testbed from 1.5 beta 3, the first templated enemy doesnt seem to move.
So, to test it, try this.. I've not had time to see if it works, but it should prove either way.
Create an object named PlayerShip, add the WASD movement to it (or any other, its just a moving target for us)
Create a new static sprite and called it enemy 1, add a Moveto behavior and set the moveto to move to our player ship
Create another static sprite called enemy 2, add the same moveto etc.
Create a sceneobject and add a spawn behavior to spawn our two enemies at the edge of the area (full screen) infinitely.
What I'm getting is that enemy 1 simply stays still, while enemy 2 happily spawns and comes after me.
I tested the same code in 1.5b3 and its working ok still, so it must be something in 1.5 release. I'm guessing that the first template isnt removed somehow. I guess one test for that would be to change the order of creation in the level file (just cut and paste the order of creating enemy1 and enemy2 to see if there's a difference).
I'll post a followup zipfile later with the actual test game directory for you to try.
So, to test it, try this.. I've not had time to see if it works, but it should prove either way.
Create an object named PlayerShip, add the WASD movement to it (or any other, its just a moving target for us)
Create a new static sprite and called it enemy 1, add a Moveto behavior and set the moveto to move to our player ship
Create another static sprite called enemy 2, add the same moveto etc.
Create a sceneobject and add a spawn behavior to spawn our two enemies at the edge of the area (full screen) infinitely.
What I'm getting is that enemy 1 simply stays still, while enemy 2 happily spawns and comes after me.
I tested the same code in 1.5b3 and its working ok still, so it must be something in 1.5 release. I'm guessing that the first template isnt removed somehow. I guess one test for that would be to change the order of creation in the level file (just cut and paste the order of creating enemy1 and enemy2 to see if there's a difference).
I'll post a followup zipfile later with the actual test game directory for you to try.
About the author