[June Status] Discrete Actions


Hi all,

Phase II of Silver Key is progressing steadily. The player has a face now.

This month, I built a discrete action system. Discrete actions are any action the player can perform that have a predefined ending and can't be done continuously. This includes attacking, dodging, and using items. It's a broad category, but there's a lot of behavior that can be defined across all of them, and that will save a lot of time.

The Anatomy of an Action


All frames of the basic sword attack, split up into its wind-up, strike, and recovery animations

The system is built around the player's animations. Each animation has a wind-up, strike, and recovery.

During the wind-up, the player is locked into the action they are about to do. This is mostly just a delay, keeping actions from happening instantly and providing a bit of time for the enemy to interrupt the player, or vice versa.

The strike is the phase where the action is actually performed. In the case of an attack, enemies hit by the weapon during this phase will take damage. In the case of a used item, its effects will realize now.

The recovery is the time it takes for the player to return to their default state after the skill is complete. If the skill is part of a combo, the game will listen for another attack button press and return to the wind-up phase if it receives one. If the player pressed the attack button early during the strike phase, it will remember that during the recovery phase and initiate the combo, allowing for quick successive strikes.

Each combo is simply a list of skills, and when the player progresses the combo, they simply proceed down the list.

I referenced Johnny Rouddro’s video: Godot 4 Hack and Slash #1 Active Skill when building it out.

Current Progress

Features Completed this Month:

  • Player model updated
  • Weapons can be equipped and unequipped
  • Sword has a 3-hit combo, Hammer has a 2-hit combo
  • The player can lock on to enemies

Features to be Completed for Phase II

  • Spear and Bow weapons
  • Animations for equipping and unequipping
  • Shield
  • Two new enemies

I'm still on track to release Phase II in August.

Thank you for reading, and I'll see you in July!

Get Silver Key [v.02]

Leave a comment

Log in with itch.io to leave a comment.