Help with towerdefence problem

xznkokxznkok Member Posts: 33
edited November -1 in Working with GS (Mac)
Hello,I have some problems with my TD game. I want to make a single-target attack tower, however, when the wave of monsters getting crowd (the monsters overlap each other and keep moving, this very usual in TD game), the tower became a multi-targets attack..... because I made monsters to detect bullet-actor collision, I have already re sized the bullet to 5x5 picture size, but the bullet still collision and attack multi targets when the monsters getting crowd, this is not what i want.....

Still remember the iphone TD game called "creeps"?, the singletarget tower of that game can lock and attack single target, could that be made by gamesalad?
Could anyone have some ideas about this? How to make the tower exactly attack single target nomatter how monsters crowd.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You could probably use numbered attributes assigned to each instance of the actors and then require the tower to lock onto that instances position when it fires. Not sure what the best way of setting that system up but I could see it working with a ton of time put in.

    Something like game.monster1.x game.monster1.y etc…

    Just thoughts rolling off my tounge.

    Good Luck
  • xznkokxznkok Member Posts: 33
    tenrdrmer said:
    You could probably use numbered attributes assigned to each instance of the actors and then require the tower to lock onto that instances position when it fires. Not sure what the best way of setting that system up but I could see it working with a ton of time put in.

    Something like game.monster1.x game.monster1.y etc…

    Just thoughts rolling off my tounge.

    Good Luck

    Thank you. I tried your way before. But the problem is on the path of the bullet move to game.monster1.x and game monster1.y, the bullet may collides with monster2 or monster3 etc if the monsters close to each other ...
  • AppChogieAppChogie Member Posts: 503
    Hi I have made a tower defence game would this help?



    Keith
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    xznkok said:
    Thank you. I tried your way before. But the problem is on the path of the bullet move to game.monster1.x and game monster1.y, the bullet may collides with monster2 or monster3 etc if the monsters close to each other ...

    You will have to also set a unique attribute somehow to number each monster so it knows which one it is colliding with
Sign In or Register to comment.