Random timing of a simple task (Whitaker)
Hello again!
So, we all know that a good mash game has challenging AI. However, you also do not want that AI to all produce the same results every time! I was racking my brain trying to figure out the perfect algorithm that would be time based, as opposed to frame dependent, that would provide challenging AI while also giving them a "human feel." I had already set up all my animations and logic in a behavior tree and really did not want to redo the work to get the logic in the AI controller. I tried even having the logic for the timing split off in the AI controller class. That was working fine all the way until I discovered the Timing task in the behavior tree!
With the wait task, I was able to configure a timing between tasks that could have a random deviation. This way I was able to make the AI challenging while feeling fairly random. The Ai would "press" the button wait a set time, with a random deviation, before "releasing the button." Then it would do it all again. This proved to be the same result as I was trying to do from the AI controller class but with SO MUCH LESS work. Who knew it could be so easy!
Get Party Panic!
Party Panic!
Race against your friends for the treasure in this 4-player party board game!
Status | Released |
Author | ctrl.alt.defeat.team |
Genre | Adventure |
Tags | Board Game, minigames, Multiplayer, party-game |
Languages | English |
More posts
- Game Over! Continue?Jun 24, 2023
- Reflecting on the Journey: The Finale of Party Panic's Development... or IS it?Jun 22, 2023
- New UI, same old usJun 17, 2023
- Animating A Mesh Without a Skeleton by WhitakerJun 16, 2023
- Animating Text in a Widget By WhitakerJun 16, 2023
- Final Stages and Future Prospects: Party Panic DevlogJun 15, 2023
- The Volcano is active!Jun 10, 2023
- Devlog: Conquering the Challenges in 'Crash'em Karts' - New Kart Racing Mini-gam...Jun 09, 2023
- Camera Angles and using new CamerasJun 08, 2023
- Party Panic! Devlog: Navigating through Challenges and Revving Up for a New Mini...Jun 02, 2023
Leave a comment
Log in with itch.io to leave a comment.