Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Tower defense enemies
- ScreetYeet_2
-
24 posts
Tower defense enemies
I have created a prototype for a grid based tower defense games, and i already have implemented a system that lets you place towers, there are enemies, but they simple move from left to right, in a straight line. I would like them to be able to find there way through a map with twists and turns, and help is much appreciated.
- deck26
-
1000+ posts
Tower defense enemies
Assuming the maps are predefined it should be possible to have some sort of colour code or ghosted sprites that an enemy can detect and turn - you just need to indicate turning left or right. The colour could be very subtly different so it's not obvious to the player.
- ScreetYeet_2
-
24 posts
Tower defense enemies
I dont mean AI the maps will only have one route for the enemies, but deck26 has already given me an idea. Do you mean A.I.? Or…
- awesome_guy6856
-
100+ posts
Tower defense enemies
You could pre-program it using the glide blocks. It won't require any more sprites than you need.
Last edited by awesome_guy6856 (Sept. 23, 2020 20:58:15)
- awesome_guy6856
-
100+ posts
Tower defense enemies
That's actually really smart, ngl. It allows for several different maps without needing overly complex code. I'm gonna try this, thanks! i just use a list full of list points
- Discussion Forums
- » Help with Scripts
-
» Tower defense enemies