- Joined
- Jul 10, 2006
- Messages
- 3,315
In a tower defence that I'm making, I've got a tower that attacks only when its last attack/missile has hit, so I'm using a system where it can only attack when it has mana, and I remove its mana when it attacks and give it its mana back when its missile hits the target.
The problem I have is when one of these towers attacks a unit, but before the missile hits, that unit dies. Now this tower has no way of getting its mana back, so I devised a rather cheapish way of fixing this, by simply resetting the mana at the start of the next round...
So my question is this: is there another way of fixing this? Or is there another way of making this attack system?
The problem I have is when one of these towers attacks a unit, but before the missile hits, that unit dies. Now this tower has no way of getting its mana back, so I devised a rather cheapish way of fixing this, by simply resetting the mana at the start of the next round...
So my question is this: is there another way of fixing this? Or is there another way of making this attack system?