Discuss Scratch

ScreetYeet_2
Scratcher
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.
wantdm6
Scratcher
12 posts

Tower defense enemies

Do you mean A.I.? Or…
deck26
Scratcher
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
Scratcher
24 posts

Tower defense enemies

wantdm6 wrote:

Do you mean A.I.? Or…
I dont mean AI the maps will only have one route for the enemies, but deck26 has already given me an idea.
awesome_guy6856
Scratcher
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)

Nezon
Scratcher
1000+ posts

Tower defense enemies

i just use a list full of list points
awesome_guy6856
Scratcher
100+ posts

Tower defense enemies

Nezon wrote:

i just use a list full of list points
That's actually really smart, ngl. It allows for several different maps without needing overly complex code. I'm gonna try this, thanks!

Powered by DjangoBB