Make an actor go through maze?
blue_elephant
Member Posts: 505
Is there a way to make an actor automatically go through a simple maze (like zigs zags or so) even if it requires the actor to go the opposite way from the finish?
Thanks
Kinda like this game: http://www.mindjolt.com/warzone-tower-defense.html
Thanks
Kinda like this game: http://www.mindjolt.com/warzone-tower-defense.html
Comments
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★
YOU then type in the positions of where it needs to go,
Eg, 10,29
10,44
13,44
You will then use the interpolate or move to behavior to go to those positions. It involves a bit more, but i am pretty sure that's what codemonkey was referring to.
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★
Blank - No exit
N - North
S - South
E - East
W - West
NW - North and West
NS - North and South... etc.
Then when an actor gets to a cell, it pulls the data from the table and checks if it contains a direction to go to.
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★
So just to be clear?
It's a grid game
The player is creating the maze
How are they doing this? By touching each sqaure?
If so it's going to be quite complicated to work with. Very. If you can provide an image of an example it should help a lot.
http://thumbs1.mochiads.com/c/g/warzone-tower-defense-extended/screen2.jpg
The player clicks on a gun they want and place it on the grid. enemies come in and try to make their way to the base. The guns automatically shoot toward the enemies. Once the base loses it's health the game is over.
Thank you for your help!
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★
Templates: 2048 • Pinch Zoom • Easy Universal Build • Fruit Ninja Blade Effect • 4 Pics 1 Word • Offline Timer
This template might be useful: http://marketplace.gamesalad.com/#category=13&product=12730
It seems like if you had the player place possible waypoints/intersections you might have better luck getting the enemies to figure out the maze, but that's expecting a lot from a player.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Most tower defense games have a set path. Feildrunners 2 has a grid method in which the troops take the quickest path.
This too is very complicated, don't expect any one to give it away free.
I was playing around with and it's come to a lot of variables. Going to attempt it tonight if have time. But as stated before, having a pre calculated course would be done easier. Then have the option to place guns on the sides of the path.
Then you would use tables as mentioned to before.
★ My Apps | Gamesalad Tutorials : Youtube Channel , Website. ★