Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Attack demo with Heartbeast

Latest
Compare
Choose a tag to compare
@NathanLovato NathanLovato released this 20 Oct 18:52
· 155 commits to master since this release

This demo is larger than usual: it shows a character system with a common parent script that both the player and the AI share. It is the result of a collaboration with Heartbeast

To learn how to manage weapon animation and collisions, watch the two part tutorial:

  1. How to Animate the Sword
  2. Code the Sword Attack

Character killing itself with its weapon, a collision issue explained and fixed in the tutorial

Player killing himself. A common collision issue the tutorial and the demo show how to fix.

Download the demo below. Warning: you must use a recent Godot 3 build. Download a nightly build on this page.

The demo features:

  • Start and end versions to follow the tutorial
  • Simple combat mechanics
  • Scene inheritance
  • Sword and spear with animation-driven mechanics
  • Basic patrol AI
  • Simple state machine example

It's also open source, meaning you can reuse the code as a base for your own games!