Dungeon maze game. How to link snapped grid to specific frame of animation??
I have been practicing with this Dungeon generator example called Procedural-Dungeon-Generation-(1st-person-rendering) I cant post the link.
Im making a similar game that is also snapped to a grid and a dungeon style rpg. I want add a hud/ overlay of a animation sprite of an hour glass being emptied as a sort of timer as you walk through the maze however if you if you turn around I want to hourglass to fill back up to find the right way. However I want to animation to only change when you take a step on the snapped grid. So essentially the timer only goes down when you step and there is a next picture of the animation for each step. Is there a way to link each step on the snapped grid to a specific frame of an animation and freeze. Then if you reverse if you turn around you go back in time and refill the hourglass.
Basically just away to link each frame of an animation linked to a specific square on the snapped grid
Whats the best way to do this?