Tower Defense question

tom.tomtom.tom Member Posts: 22
edited November -1 in Working with GS (Mac)
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

Comments

  • hrsmediahrsmedia Member Posts: 522
    You can post games to the website. Just click publish in gamesalad and choose Gamesalad.com
  • tom.tomtom.tom Member Posts: 22
    thanks for the reply hrs, ill keep that in mind. Once I post a game though..can I subsequently remove it?

    Anyone have a solution to my problem?

    still cant make my second tower act independently of the first tower.
  • tom.tomtom.tom Member Posts: 22
    And also the fact that when I spawn enemy, the first one collides with my range actor and changes collide attribute to true. However, once another enemy spawns, the attribute becomes false.

    Anyway to correct this?
Sign In or Register to comment.