Day #11 Cat Finite State Machine
Having worked on the base for pathfinding yesterday I worked on the Pet cat scene. First I drew a few animations I'd need for each state like idle, walking, sleeping, etc. Then I started coding the animations into each state, as well as the logic behind the trigger for each state.
At this point in development, the cat starts moving at random target positions, but later it'd go directly to the nearest owner and alert them of your presence.
The cat sleeps by default. When you enter the first area of detection, it opens its eyes, and entering the second will trigger its alert state which consists of it raising its head slightly and moving its tail. Then if you ramain in its area of detection for 5 seconds, it'll stretch and start walking at random, and sitting in place when its velocity is zero.
When I design a level I'll put in place certain target locations that'll trigger certain states and animations like a bed for sleeping, the owner's position as a "walk to" position, etc.
I'll work on the guards and owners next.
Files
Get Forbidden Entry
Forbidden Entry
Stealth, rob 'em up
Status | In development |
Author | GameDev_byHobby |
Genre | Role Playing |
Tags | Crime, Singleplayer, Stealth |
More posts
- Day #30 End of JamApr 30, 2021
- Day #27 House stuffApr 27, 2021
- Day #26 House exterior and cameraApr 26, 2021
- Day #25 Inventory re-textureApr 25, 2021
- Day #24 Minor updatesApr 24, 2021
- Day #21 Finishing touches to dialogueApr 21, 2021
- Day #20 Dialogue SystemApr 20, 2021
- Day #19 House InteriorApr 19, 2021
- Day #18 Starting Level DesignApr 18, 2021
- Day #16 Owner basic animationsApr 16, 2021
Leave a comment
Log in with itch.io to leave a comment.