Home Artists Posts Import Register

Downloads

Content

Hey everyone, In this tutorial, we'll change the architecture of our battles system so that it can support multiple units, and in the next tutorial, we'll implement double battles using our new architecture.

I've attached the scripts files below so you can use it as a reference while following along, and you can download the complete project files from this post https://www.patreon.com/posts/complete-project-39632268

Hope you like it. Thanks a lot for supporting the series :)

Files

Make A Game Like Pokemon in Unity | Double Battles #1

Hey everyone, in this tutorial, we'll refactor architecture of our battle system so that it can support multi-battles. 0:00 - Demo & Prequesites 1:34 - Defining a list of battle units 2:36 - Refactoring Battle Setup 17:47 - Refactoring Action Selection state 20:52 - Refactoring Exp Gain function 24:19 - Refactoring Forget Move state 26:13 - Refcatoring Move & Party Selection 31:28 - Refactoring SendNextTrainerPokemon function 32:13 - Refactoring ThrowPokeball & Run Action 33:55 - Changing the architecture of RunTurns 59:17 - Refactoring SwithcPokemon action 1:00:53 - Minor fixes 1:01:55 - Testing the new architecture Join my Patreon to support this series and get access to the Complete Project files https://www.patreon.com/posts/complete-project-39632268 Get script files for each part of this series (Useful to find mistakes in your script) https://www.patreon.com/posts/script-files-for-38708232 Download the art assets needed to follow along with this series https://github.com/GameDevExperiments/Pokemon-Tutorial-Art-Assets Features I'm planning to cover next https://trello.com/b/RozLw8e6/rpg-game-series If you like this series, consider subscribing to the channel and leave a like on the video to help this channel grow.

Comments

Zzarcon1

I think this tutorial is incompatible with the rest of the series once you get to state stack architecture. It doesn't work at all when the run turn state is called.

gamedevexperiments

Yeah, this needs to be refactored to be able to work with the new StateStack architecture. I'll be doing that once I complete the pokemon storage feature on Youtube.

Justin Wahlquist

I don't know if you'll have this bug or if my rework of the exp system clashes with this new architecture, but after this refactoring, I get a mess on the AboutToUse message...

gamedevexperiments

Do you mean the bug where the trainer sends out the player Pokemon after the AboutToUse state? If so, I'll fix that in the next video. I'll release it next week.