Thread Reader
Share this page!
×
Post
Share
Email
Enter URL or ID to Unroll
×
Unroll Thread
You can paste full URL like: https://x.com/threadreaderapp/status/1644127596119195649
or just the ID like: 1644127596119195649
How to get URL link on X (Twitter) App
On the Twitter thread, click on
or
icon on the bottom
Click again on
or
Share Via icon
Click on
Copy Link to Tweet
Paste it above and click "Unroll Thread"!
More info at
Twitter Help
Alex
@AlexEisenhart
Perpetually tired. 22 Years of coding: ask me questions if you need a hand! Gaming. Photography. Ramen. #csharp #powerbi #pixelart #gamedev #unity3d
Subscribe
Save as PDF
Feb 23, 2022
•
22 tweets
•
6 min read
A few people have asked me about final state machines.
Is an FMS just a bunch of IF statements? Why did I switch? HOW did I switch?
Here are some thoughts. Bring coffee.
First, what was my problem and why did I use an FSM to fix it?
#gamedev
#architecture
#tutorial
#howto
2/
In the beginning...
Update() on my original player controller started as 2 ideas:
1)
Always apply forward movement
2)
If the screen is touched and I'm on the ground then Jump()