#Changing Game Code to Finite State Machine(FSM)

6 messages · Page 1 of 1 (latest)

floral monolith
#

So this would be regarding the main character I suppose right?

#

Or are these for noncontrolablecharacters?

#

I learned a lot from this video:

https://youtu.be/8mE6QZCwTPQ?si=08lpnaXnjcd6B6nn

regarding state machines

Part 3 - You will learn how to create your player character and setup animations for idle, walking, chopping, tilling and watering. In this tutorial we will cover how to create a state machine and the idle and walk states and how to transition between them.

How to Build a Complete 2D Farming Game an 8-Hour Tutorial Series - All 25 Episodes - G...

▶ Play video
twilit fulcrum
floral monolith
twilit fulcrum
#

So I followed the guide for my player character's state machine code.

https://www.youtube.com/watch?v=i0Y6anqiJ-g

I am still confused on what I'm missing, unless the answer is easy. If anyone can help, please ping me.

Video Content:

0:00 - Intro
1:01 - State Class
2:51 - FSM Class
5:25 - Signals
6:08 - Summary
6:22 - Transitions
7:52 - Force Change State
9 :00 - Outro

In this video I discuss how FSM's work in general, sort of the typical layout but also more specifically how it's set up in my Godot Top-down starter...

▶ Play video