Tower defence game - tower targeting issue

So I sat down yesterday and came up with a complicated way to get my towers to target things, based on which one first entered it's range, to the last one.
But my whole plan revolved around using (what apparently doesn't currently exist in GameSalad) a rule to create custom attributes mid-game. That way it would create custom attributes for every target that moves into range of a tower.
Does anyone have a solution of how to make a basic tower in GameSalad that will be able to specifically chose it's target and only destroy that target??
Cheers
But my whole plan revolved around using (what apparently doesn't currently exist in GameSalad) a rule to create custom attributes mid-game. That way it would create custom attributes for every target that moves into range of a tower.
Does anyone have a solution of how to make a basic tower in GameSalad that will be able to specifically chose it's target and only destroy that target??
Cheers
Best Answer
-
FloridaGames Posts: 328
Recycle the enemies is the key to a gs tower defense.Make an x and y position attribute for each enemy. make another attribute(enemies on screen[E.O.S.]) and then add an actor at the very beginning of the path and when an enemy collides with it, change eos to eos plus one and change the enemies position(self attribute) to eos this will tell you what is the first enemy the second, third, etc... and when enemy dies change eos to eos-1.
Answers
http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./GSTemplateTWD.html
The template from deep blue apps looks interesting; but I don't have the budget to be buying templates at the moment.
@FloridaGames - The enemies on screen concept, I'm probably going to use that one; thank you.
I've decided that once I get this project further along I'm going to create a series of free video tutorials on how to create a basic tower defence tower/game within GS.
EDIT: @FloridaGames - What if I don't know how many enemies I'm making; how then can I make a x and y game attribute for every enemy?