Make A Game Like Pokemon in Unity | #133 - Completing Double Battles
🕑 Added 2025-01-29 19:26:41 +0000 UTCHey everyone, In this video, we'll complete the implementation of double battles. We'll fix all the edge cases in double battles and we'll modify the trainer script so that some trainers can have single battles and others can have double battles.
Comments
GameDev Experiments
Hey, I've released a new video that fixes some edge cases in Double Battles.
eduardo varela
Have these errors already been corrected?
BartTheSock
Do you have the code you used to fix these issues written down so that others can refer to it in order to fix them? I am one of the people who needs to know, but I'm sure this would be helpful to others as well.
Eric Schmidt
I noticed three other bugs/edge cases with doubles battles. I already fixed all three on my own but just wanted to report them. 1. When entering a double battle with only one Pokémon in your party, errors will occur since the unit count is higher than the number of Pokémon in your party. 2. Using a recovery item that revives a Pokémon in double battles when you only have one active Pokémon left will cause a couple issues to occur. 3. When an enemy trainer has more than two Pokémon in doubles battles and you defeat one or more Pokémon, the next Pokémon in the enemy trainer's party is not sent out correctly since the fainted battle unit is not being passed to the SendNextTrainerPokemon function.
Charles Fasano
I think you should add Rock Smash next as it should be a very easy thing to add as it's basically Cut just with a chance of a wild encounter. Can't wait for the next installment.