Tower Defense question
tom.tom
Member Posts: 22
Hi, relatively new to this forum, have a genearl question about _ things
I have a spawn actor that spawns enemys.
I have a tower that shoots when enemies are in range.
when the enemy collides with my Range Actor, a have an attribute called inRange -boolean that becomes true.
Now, with that said, the problem is, when one enemy spawns and collides with the range, the boolean becomes True. However....and this is where the problem is, when another enemy spawns the boolean goes back to false because the new enemy that is spawned hasn't yet collided with my Range Actor.
What are some possible solutions to this?
Second problem, that is kind of related to the first problem, is that when I drag another tower to the stage, the second tower will shoot at the enemy once that enemy collides with the first tower's range, rather then the second towers range.
Any solutions to this?
If any of this is confusing, I would be more then willing to clarify. I have no idea how to post games for people to see, but any solution would be great.
Thank you
I have a spawn actor that spawns enemys.
I have a tower that shoots when enemies are in range.
when the enemy collides with my Range Actor, a have an attribute called inRange -boolean that becomes true.
Now, with that said, the problem is, when one enemy spawns and collides with the range, the boolean becomes True. However....and this is where the problem is, when another enemy spawns the boolean goes back to false because the new enemy that is spawned hasn't yet collided with my Range Actor.
What are some possible solutions to this?
Second problem, that is kind of related to the first problem, is that when I drag another tower to the stage, the second tower will shoot at the enemy once that enemy collides with the first tower's range, rather then the second towers range.
Any solutions to this?
If any of this is confusing, I would be more then willing to clarify. I have no idea how to post games for people to see, but any solution would be great.
Thank you
Comments
Anyone have a solution to my problem?
still cant make my second tower act independently of the first tower.
Anyway to correct this?