Hey Guys,
I am looking to make a Tower Defense game but am having some issues trying to figure out the best way to implement a crucial step to the game “The placement of towers into zones”. e.g. I have my map divided into 5 rows and 5 columns like a grid.
What I’m trying to figure out is the best way to detect that when the player clicks on the tower button and it creates my tower with a 0/5 alpha how I can detect I’m in a grid and lock/snap the tower to that grid zone.
I was thinking of placing invisible squares as the grid and then looking at X, Y values and if between a certain X.Y setting the tower XY to the squares XY but not 100% sure on how to go about doing that I was hoping there was an easier way.
Any help would be great guys. [import]uid: 40417 topic_id: 11490 reply_id: 311490[/import]