Manipulating Arrays
Hello again. This time I am representing a team fix that I just could not figure out myself.
We wanted to implement an array of our mini games to be randomly picked from. This system would make sure that every mini game way played before resetting the list. Seems simple enough, however, I could not figure out the little bugs that were going on. I tried many different methods to no avail. making two lists and adding already played games to the second list. Skipping them if they came back around. Setting up two list and removing played games from one. When it was empty, I would refill it with the original list. Eventually, I settled on a minigame variable that saved the mini game to be played. removed that game from the playable list and then grabbed the needed mini game variable when it was ready to be used.
This seemed good but I was still getting repeats!! By this time I informed the team of my failure and went to bed. Hoping that a good night's sleep could provide some insight.
To my surprise, I woke up to a series of messages between the teammate about possible issues/solutions! It turns out that somewhere in the logic the mini game list would get doubled. Even tripled! and that is where the repeats were coming from. The logic was all correct. The list just needed to be cleared before each new game started. Thank you Chris and Marcos. You guys are life savers!
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.