itch.io is community of indie game creators and players

Devlogs

State Machine update & Episode 3 source code added

Sara's Turn Based Battle System
A downloadable project

The source code for Episode 3 has been uploaded ahead of the video release. The video will shortly be available for patrons and likely next week for the public.

I have also updated the full project source code to use a new state machine driven flow for oBattle, this makes the logic a lot clearer and easier to follow (and to teach!). I should really have done this in the first place!

I have also fixed an issue where the transition surface would be lost on alt-tabbing or fullscreen toggling, leading to a crash when a battle next begins or ends. This is a temporary fix that will prevent the crash, but skip the transition. As surface data is always lost from GameMaker in these circumstances and only writing a buffer to preserve the contents will permanently fix the issue. However, this is a tricky concept so while I work out if I want to teach this, or if I want to change the transition method entirely, this quick fix will suffice.

Files

  • Full Project 545 kB
    Mar 31, 2023
  • Episode 3 - Battle State flow 530 kB
    Mar 31, 2023
Download Sara's Turn Based Battle System
Leave a comment