Weekly Sunday Post – October 1st 2017

This week has been battling with the enemy movement script. It’s the algorithm that makes enemy units decide what Player Unit they’re going to move towards. A simple A* path-finding algorithm looks at all the tiles on the map that is possible for the Enemy Unit to move to and then finds the closest Player Unit and starts moving in that direction.

There have been quite a few hiccups. The intended result occurs except there’s a major issue of the game pausing during the frame that the path-finding calculation happens. Placing the calculation in a coroutine and waiting until its done takes way too long so I’ll probably have to find another way of calculating how the Enemy units find the closest Player unit to attack. Other than this enemy script, some more character designs were sketched out which will be rendered out this week.

Thanks for reading.

 

Leave a comment