No Game Engine Game Dev: Word Sleuth 009: AnimationSequences get tags and uniqueness

2 months ago
6

Streamed on 2024-07-05 (https://www.twitch.tv/thediscouragerofhesitancy)

Game Engines are for sissies!

Today I had an idea how to fix certain types of animation problems. Add a "tag" to an ActionSequence, then if the ActionSequence sees a running ActionSequence with the same tag, wait for the running one to complete. This keeps an ActionSequence in the queue until a given tag is clear. Now certain animations are much safer to launch.

While mucking about with that, I discovered that Text and MultiColorText weren't reporting their bounding rectangles correctly, so that was fixed.

The rest of the time was spent mucking about with existing ActionSequences to bring them up to speed with the new material. Several blunders and digressions dragged things to a halt a couple of times. But I persevered and got things up and running.

Since the animations were more safe to run, I finally made decisions about which animations would be used in the game for different actions and removed the keyboard interface for switching between them.

Loading comments...