Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

AOE Attack (Continued)

Robert Dionian

1/28/2024

Problems: I My AOE attack gets random tiles throughout the board and applies damage to any player character that is on that tile. A problem I was having was I was trying to use the existing attack indicator function to highlight the tiles that were about to be attacked, the problem with that was the indicator was indicating all the tiles that were surrounding the tile that was to be attacked so the entire board was being highlighted. I was originally thinking I would need the entire grid in order to do AOE attacks, but instead I get a tile at a random row and and column inside a while loop while the number of attacks is still less than the desired number. A problem though is the tiles that are being attacked are not spread out as much as I would like. 

Solution: This was a pretty easy solution, all I did was make a new function that takes in a tile and an index and set the tiles material while the boss is still attacking, after the boss attacks I set all the tiles material back to the original color. I am still working on a solution to make the random tiles more spread out. I was thinking of just using odd or even numbers, but then the player could figure out the pattern and be able to avoid the AOE attack.

Support this post

Did you like this post? Tell us