I literally changed my reddit pfp weeks ago
there’s no tilemaps here! I specifically chose not to use tilemaps because I want to make custom drawn maps, and every other tower defense I’ve seen here uses them, which is kinda lame
Yes please
WHAT
look at my platform thing somewhere. If a platform is going right, then once it detets that the tile its on is a path connect left to up, then because its going right it goes up. Same with every other direction.
here, my platform mechanics are very simple. when going right, when the platform overlaps a tile that looks like
, it moves down. Its simple and it easy to make!
that does the shortest path possible, so the enemies in the picture would not go into the loops.
in the other explanations of my platform thing (that hopefully should have been approved), the tilemap pretty much is the predefined path.
dang it haven’t hopped on reddit in a while
each map has an array of points that enemies will follow chronologically, that’s simple enough. But the problem with this is that the game doesn’t know which enemy is closest to the exit, and towers can’t even see the track themselves. So the array of points is put into a function that finds the cumulative distance at every point. The last value would be the absolute total length of the track. I then have a function called place(), which takes an enemy and their distance(which is just a number) and converts it into a coordinate point. So instead of having enemies go from one point to another, I can just assign them a single number, and it’ll correspond to that distance along the track.
you can still make custome maps with tilemaps. in my mistborn game all my tiles are handmade obviously but look at the city map of the game. there is a backround yes but most of the map is my tilemap. Really nice art tho!!