Grid Combat System! (Turn-Based, XCOM)
โ
Get the Project files and Utilities at https://unitycodemonkey.com/video.php?v=mONHucoYASU
๐ Check out the Spring Sale with 500 most popular assets at 50% off! https://assetstore.unity.com/?on_sale=true&aid=1101l96nj&pubref=gridcombat
โจ Use the Coupon SSAFF2020 for an extra 10% off!
โค๏ธ Using this Affiliate Link helps support the channel๏ปฟ
Let's make a Grid Turn-Based Combat System in Unity like XCOM or Wasteland.
Grid System in Unity (Heatmap, Pathfinding, Building Area)
Custom Tilemap in Unity
https://www.youtube.com/playlist?list=PLzDRvYVwl53uhO8yhqxcyjDImRjO9W722
A* Pathfinding in Unity
https://www.youtube.com/watch?v=alU04hvz6L4
Modular Character System
https://www.youtube.com/watch?v=mJRc9kLxFSk
Simple Turn-Based RPG Battle System
https://www.youtube.com/watch?v=0QU0yV0CYT4
Simple Enemy AI
https://www.youtube.com/watch?v=db0KWYaWfeM
What are Delegates in C#?
https://www.youtube.com/playlist?list=PLzDRvYVwl53t2GGC4rV_AmH7vSvSqjVmz
Pathfinding in Unity DOTS! (Insane Speed!!!)
https://www.youtube.com/playlist?list=PLzDRvYVwl53v55lu_TjC21Iu4CuFGQXVn
Easily Control Cameras with Cinemachine
https://www.youtube.com/watch?v=Ml8ptNeezsU
In THIS video were going to make a Turn-Based Grid Combat System in Unity
Our Units will be in two teams placed in a grid with a certain move radius and the ability to do attacks.
Each unit will do its Move and Attack in a Turn by Turn basis.
First we're going to look at the base for our Combat System, everything is set up using the Grid System that we made previously along with the A* Pathfinding and the Tilemap.
By building upon those systems we can quickly set up our Grid Combat.
We're going to first deal with a single Unit and use Pathfinding to calculate all of the valid positions that Unit can move to.
Then we're going to store the Unit positions in our Grid so we can identify when we click on a Unit.
After detecting a click on a Unit we're going to test if that Unit is an Enemy of the current active Unit and if so we're going to order our Unit to Attack.
With the Attack and Movement working then we create the Turn-Based System like we did in a previous RPG Battle System. First the Blue team goes then the Red team and so on.
And with that our whole system is complete!
You could expand upon this system by adding special abilities and hit/miss chances to make a game like XCOM.
If you have any questions post them in the comments and I'll do my best to answer them.
๐ Subscribe for more Unity Tutorials https://www.youtube.com/channel/UCFK6NCbuCIVzA6Yj1G_ZqCg?sub_confirmation=1
See you next time!
๐ Support on Patreon https://www.patreon.com/unitycodemonkey
๐ค Join the Community Discord https://discord.gg/eHjUVrm
๐ฆ Grab the Game Bundle at https://unitycodemonkey.com/gameBundle.php
๐ Get the Code Monkey Utilities at https://unitycodemonkey.com/utils.php
#unitytutorial #unity3d #unity2d
--------------------------------------------------------------------
Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.
I've been developing games for several years with 7 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
- Website: https://unitycodemonkey.com/
- Twitter: https://twitter.com/UnityCodeMonkey
- Facebook: https://www.facebook.com/UnityCodeMonkey/
Other Videos By Code Monkey
Other Statistics
XCOM: Chimera Squad Statistics For Code Monkey
Code Monkey presently has 109,991 views for XCOM: Chimera Squad across 1 video, with his channel publishing less than an hour of XCOM: Chimera Squad content. This makes up less than 0.19% of the total overall content on Code Monkey's YouTube channel.