Grid Combat System! (Turn-Based, XCOM)

Code Monkey
Code Monkey
118.1 هزار بار بازدید - 4 سال پیش - ✅ Get the Project files
✅ Get the Project files and Utilities at https://unitycodemonkey.com/video.php...
🌐 Check out the Spring Sale with 500 most popular assets at 50% off! https://assetstore.unity.com/?on_sale...
✨ 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
Grid System in Unity (How to make it ...

A* Pathfinding in Unity
A* Pathfinding in Unity

Modular Character System
Modular Character System in Unity (Mo...

Simple Turn-Based RPG Battle System
Simple Turn-Based RPG Battle System (...

Simple Enemy AI
Simple Enemy AI in Unity (State Machi...

What are Delegates in C#?
C# Basics to Advanced

Pathfinding in Unity DOTS! (Insane Speed!!!)
Pathfinding in Unity DOTS / ECS

Easily Control Cameras with Cinemachine
Easily Control Cameras with Cinemachi...

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 @codemonkeyunity

See you next time!

📍 Support on Patreon Patreon: unitycodemonkey
🤖 Join the Community Discord Discord: discord
📦 Grab the Game Bundle at https://unitycodemonkey.com/gameBundl...
📝 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: Twitter: UnityCodeMonkey
- Facebook: Facebook: UnityCodeMonkey
4 سال پیش در تاریخ 1399/02/05 منتشر شده است.
118,164 بـار بازدید شده
... بیشتر