Turn Based Battle / Combat System (Active Time Battle (ATB))

In this rather long tutorial series i will explain, how you can create your own turn based battle system like the active battle system in Final Fantasy 6.

Active Time Battle (ATB) means, the enemys will act independent from the heros input, but enemys will not act, when heros are the next to attack. So if the player does not do any inputs, the enemys will keep attacking, when they can.

It won’t have intense grafics and i will try to explain everything as best as possible. Even if i might go against some principles of object oriented programming, feel free to correct me.

Introduction:

Playlist is here: https://www.youtube.com/playlist?list=PLj0TSSTwoqAypUgag6HJoVZD-RmbpDtjF

1 Like

In this part we are creating the battlefield, and create the base classes for enemys and heros.
Also we start with the hero statemaschine and enemy statemaschine.

I know i made some mistakes in here, but i will fix them in a later video.

In this part we will create some GUI elements using the canvas system. We will change the functionally later on.

In this part will create the hero and enemy statemaschines & and connect the progress/ action/ gauge bar for the heroes.

1 Like

In this part we create the actual battle statemaschine, let the enemy choose an action and fill the corresponding and needed data into the battle state maschine.

In this part we move the enemys near the heros, when they are attacking, to show interaction.

In part 7 we improve some GUI elements and add managable heros to a new list.

Turn Based Battle System / Combat
Part 8:

Playlist is here: https://www.youtube.com/playlist?list=PLj0TSSTwoqAypUgag6HJoVZD-RmbpDtjF

Turn Based Battle System / Combat
Part 9:

Playlist is here: https://www.youtube.com/playlist?list=PLj0TSSTwoqAypUgag6HJoVZD-RmbpDtjF

Turn Based Battle System / Combat
Part 10:

Playlist is here: https://www.youtube.com/playlist?list=PLj0TSSTwoqAypUgag6HJoVZD-RmbpDtjF

Turn Based Battle System / Combat
Part 11:

Playlist is here: https://www.youtube.com/playlist?list=PLj0TSSTwoqAypUgag6HJoVZD-RmbpDtjF

Turn Based Battle System / Combat
Part 12:

Playlist is here: https://www.youtube.com/playlist?list=PLj0TSSTwoqAypUgag6HJoVZD-RmbpDtjF

1 Like

Turn Based Battle System / Combat
Part 13:

Playlist is here: https://www.youtube.com/playlist?list=PLj0TSSTwoqAypUgag6HJoVZD-RmbpDtjF

Does these codes and all work for 2d too instead of 3d?

A lot people where following the series and could apply that to 2D games as well.

THank you!