Honestly, I can't really think of how to explain this with a single sentence. And sorry if this thread is in the wrong place. I'm stupid. :P Anyway, I'm sure some of you have played Squadron TD. When the wave ends, all of each player's towers are set back to where you built them, no matter where they moved. I'm trying to figure that out but just can't manage.
This is about as far I got in ways of....trying to figure it out.
When any unit dies, if the number of living units in the enemy unit group is 0, then fade out the camera...(As far as I got)
Well, what I want to happen is all units that the player(s) built are moved back to where they were created. After searching for an hour, I couldn't find any action(s) that could do that. Please help?
1. simple: write original x&y into the custom value for the unit(tower is a unit) on creation
2. at the end of the round(or whatever condition you wish for): loop through all tower units on the map and move them to the coordinates saved in the units custom value
Honestly, I can't really think of how to explain this with a single sentence. And sorry if this thread is in the wrong place. I'm stupid. :P Anyway, I'm sure some of you have played Squadron TD. When the wave ends, all of each player's towers are set back to where you built them, no matter where they moved. I'm trying to figure that out but just can't manage.
This is about as far I got in ways of....trying to figure it out.
When any unit dies, if the number of living units in the enemy unit group is 0, then fade out the camera...(As far as I got)
Well, what I want to happen is all units that the player(s) built are moved back to where they were created. After searching for an hour, I couldn't find any action(s) that could do that. Please help?
@XBloodlustX96:
nope havent played it but:
1. simple: write original x&y into the custom value for the unit(tower is a unit) on creation
2. at the end of the round(or whatever condition you wish for): loop through all tower units on the map and move them to the coordinates saved in the units custom value
I'll do that. I'll likely get the trigger wrong, or close at least. But now I know what to look for. Thanks. :D