How to make it so the whole pathway can't be blocked

hman360hman360 Member Posts: 590
edited November -1 in Working with GS (Mac)
How can I make my game stop the user from blocking the whole width of the pathway with weapons (block the enemy)? When you block the whole pathway, it is impossible to lose. I am using a grid. If you need me to be more specific, just let me know.

http://imageshack.us/photo/my-images/231/zombiesm.png/

As you can see in the image above, in this game, it will not let you place a weapon between the two separated weapons because then it is impossible to the enemies to get where they need to go making the game pointless.

Comments

  • hman360hman360 Member Posts: 590
    Does anyone even know if it is possible?
  • svnsvn Member Posts: 445
    What you need is to tell your turret actors if the distance between them is x amount, then you can't put a turret there. It's called magnitude, and Tshirtbooth has a great video on how to determine magnitude, at: "http://www.youtube.com/user/GameSaladCookbook?blend=21&ob=5#p/u/61/_p2s61XVZ0o" . From there, though, I really do not know.
  • hman360hman360 Member Posts: 590
    Thanks this will help, but I want some actors to be close together but if there is a chain of them and the completely block the path, I want it to not let the player put the turret there.

    Thanks for you halp
  • svnsvn Member Posts: 445
    Sorry, I don't know beyond that. I don't have time to test it out on my own, cause Im building a new game.
Sign In or Register to comment.