iparalyze
Issue with events
I've been trying to solve this puzzle for days now, but I can't seem to be able to solve it. I'm working on a very simple game with two heroes and two monsters. I've created a system where a TurnsManager method checks if all monsters are dead and if there's at least one character left, it will proceed to the second battle. Everything works well until I reach the second battle. If both heroes die the game continues until it ends itself. Any help would be highly appreciated https://github.com/aleviti2/FInal-Battle
11 replies
❔ Looping problem
Hey, I can't figure out what is not working in the logic behind my TurnsManager method in the GameEngine class. For some reason the game carries on even after either all heroes have been killed or after all Monsters have been eliminated. As you can see I have three lists, a HeroesParty list, a MonsterParty list and a TurnList. The property IsDead gets updated in all of them, so I really don't understand where it clogs... https://github.com/aleviti2/FInal-Battle
GitHub
20 replies
❔ Issue with a Property
Hi everyone, I was wondering if anyone could find the issue here with my final battle. The code is far from finished. But I'm stuck with a problem that neither I nor ChatGPT can solve. The property AllCharactersList in the Party class won't populate. https://github.com/aleviti2/FInal-Battle
4 replies