Disable invalid actions and animate pathfinding


This week brings a few UI improvements.

Expensive actions are grayed out

Torrin's Healing Touch costs 2 Action Points. If she only has 1, it will be grayed out.


If you hover over the action, it will tell you why it's disabled. In this case Torrin needs 2 Action Points.


There was at least 1 playtest where someone rushed in to help Sir Camil, only to realize Torrin was out of actions. This will help reduce invalid options. More to come with warnings like "no valid targets in range" and "no valid targets even if you move".

I also want to add information about range and damage into this popup so they don't take up as much room.

Moving around enemies

When squaddies moved on the field they would take a direct path, even if they moved through an enemy. It may be easier to understand with a screenshot. In this sample map, I'm moving Torrin to move all the way to the right. The blue path highlights the actual route she took.


The animation engine used to move Torrin through the Slither Demon and move straight to the right without detouring around it. The underlying pathfinding engine always knew Torrin should move around the enemy.

What's next?

This week got real busy. There's some clean up I'll handle, and then I'll work on disabling the Raise Shield ability so you can't use it twice per turn. Click to move may get updated so Torrin doesn't run into melee with her ranged attacks.

Files

torrins-trial.zip Play in browser
5 days ago

Leave a comment

Log in with itch.io to leave a comment.