Simple Wave spawner in Unity 2D

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 160

  • @chronoabi
    @chronoabi  4 ปีที่แล้ว +2

    Hey follow me on Discord. Link is here
    discord.gg/78q3HFnb69
    You can ask for help , post what your working on and get motivated , show your funny bugs and memes and more.

    • @FunnyTypeChi
      @FunnyTypeChi 4 ปีที่แล้ว

      its invalid i think u have to update the invite

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      @@FunnyTypeChi Oh so thats why no one was joining 😂😂. I will Update it bro

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      @@FunnyTypeChi here you go brodiscord.gg/cPmfbXcU

    • @FunnyTypeChi
      @FunnyTypeChi 4 ปีที่แล้ว

      @@chronoabi lol now its working

    • @rink369
      @rink369 4 ปีที่แล้ว +1

      this video helped me a lot

  • @NanaKitty-tiger501
    @NanaKitty-tiger501 ปีที่แล้ว +1

    I really needed this, I had been searching hours and hours of videos looking. Just what I needed now I can finally stop searching. It was not to long, I would rather have a longer video that explains things well than someone rushing to make it short so that they leave a lot of explaining out. I prefer this to one that just is follow me you don't need to know what you are doing and when you are done you may have what you needed but haven't really learned anything. I saw you video saying you are back and I am glad, we need more videos like your.

  • @juju3522
    @juju3522 ปีที่แล้ว +1

    thank you so much for this tutorial! a bit of a long one, but even now in 2023 it still works and was very clear to follow. cheers!

  • @daxdmon3297
    @daxdmon3297 4 ปีที่แล้ว +6

    You are going to be the next Brackeys man, Keep up the good work... Really easy to understand.

  • @Tutterzoid
    @Tutterzoid 2 ปีที่แล้ว +1

    HUGE Thanks for this Gem in scripting at 02:46 .. 03m17 and then from 06:15

  • @SirMeowkus
    @SirMeowkus 4 ปีที่แล้ว +1

    These videos are pure gold. thank you!

  • @theoddbud1717
    @theoddbud1717 3 ปีที่แล้ว +1

    Thank you! This helped me so much for finals!

  • @husnushepherd
    @husnushepherd 4 ปีที่แล้ว +3

    Wow, this is exactly what I needed. Thanks.

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Glad it helped!

  • @aadityaza3423
    @aadityaza3423 4 ปีที่แล้ว +4

    Thank you, your videos are really helpful!

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว +3

      😂😂😂😂

  • @luGGas009
    @luGGas009 ปีที่แล้ว +1

    I have the problem, that the next Wave spawns and still a monster from the previous wave is spawning bevor the actual wave starts. Got anyone some help for me, why this is like that?

    • @Ez-_-69.
      @Ez-_-69. ปีที่แล้ว

      Maybe the enemy which is alive from the previous wave doesn't has the enemy tag, i couldn't understand your problem properly explain in more properly

  • @Pigga_Prime
    @Pigga_Prime ปีที่แล้ว +1

    At 26:42 it doesnt allow me to drag my Wave Name into the field? Please help

    • @Pigga_Prime
      @Pigga_Prime ปีที่แล้ว

      Day 3 of waiting for a response (i missed day 2)

    • @Pigga_Prime
      @Pigga_Prime ปีที่แล้ว

      Day 4 of waiting for a response

    • @WHITEY_DEV
      @WHITEY_DEV 14 วันที่ผ่านมา

      over 365 day of waiting for a response

  • @coveninteractive7565
    @coveninteractive7565 3 ปีที่แล้ว +2

    Great vid ! If I were to show a winning panel when the final wave has been completed where would I put that ?

    • @FortniteBalls9669
      @FortniteBalls9669 3 ปีที่แล้ว +1

      Don’t know how to do that but make a new scene for that then do some code so it will switch to that. Anyway does this work in the newest Unity version?

  • @haydzplayz143
    @haydzplayz143 2 ปีที่แล้ว +1

    Thank you so much! Great tutorial :)

  • @ImW-1-z-a-r-d
    @ImW-1-z-a-r-d ปีที่แล้ว

    hello, great guide, but I was wondering if there is a way to make the waves random, as in how to apply the Random.Range code?

  • @ronygankin4158
    @ronygankin4158 4 ปีที่แล้ว +1

    Great tutorial, well explained and well put.
    I seem to run into the same problem as many other people here with waves not advancing after wave 1.
    Personally I use a button to spawn the waves from a method and not the animation but it seems to have the same issue

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      That event in you animation after go (which should spawn the next wave) just put it before go( about half a sec). It worked when I tried solving the problem for others. Hope it helps you too😊

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      That event is in the3, 2,1,go animation BTWs

    • @ronygankin4158
      @ronygankin4158 4 ปีที่แล้ว

      @@chronoabi hey there, I don't use the animation. I use a button to call the next wave. For some reason it gets stuck in wave one. If I just put it on the update and it runs on its own it does work.

  • @haydzplayz143
    @haydzplayz143 2 ปีที่แล้ว +1

    Great tutorial!
    Is there a way to show a wave 1 animation at the start? I really need, thanks!

    • @haydzplayz143
      @haydzplayz143 2 ปีที่แล้ว +1

      Please! I need urgently!

    • @quackduck
      @quackduck 2 ปีที่แล้ว

      @@haydzplayz143 when you spawn a wave check if its wave 1, if it is show a title or whatever then do the rest

    • @haydzplayz143
      @haydzplayz143 2 ปีที่แล้ว

      @@quackduck thanks, I've got it to work!

    • @quackduck
      @quackduck 2 ปีที่แล้ว

      @@haydzplayz143 awesome

    • @xGhostx001
      @xGhostx001 หลายเดือนก่อน

      Hii @haydzplayz143, could you share how you managed to do it with first wave? thanks

  • @zefamtheboi3122
    @zefamtheboi3122 3 ปีที่แล้ว +1

    Self checkpoint 6:12

  • @Cgtchilly
    @Cgtchilly ปีที่แล้ว

    When it spawns it it spawns it invisible and I can’t see it but in my scene tab I can see it but not in the game tab

  • @bybocz
    @bybocz ปีที่แล้ว +1

    My enemies seem to be invisible if spawned by the waveSpawnner and their code for movement and shooting breaks, but if i spawn the manually it is working normally. What is the problem?

    • @chronoabi
      @chronoabi  ปีที่แล้ว

      I genuinely have no idea bro maybe it your prefab that's giving you a problem ?

    • @bybocz
      @bybocz ปีที่แล้ว

      @@chronoabi Oh I figured it out I need to have set the Z-axis on the waveSpawner and spawnpoints and prefabs 0 everywhere.

  • @mailmike933m
    @mailmike933m 4 ปีที่แล้ว +2

    Can u make a tutorial on making 2d water that allows player to swim underwater?

    • @Danee2108
      @Danee2108 3 ปีที่แล้ว

      Do you still need help? You could set a trigger for the water area, and while in the trigger, disable the jump limit, add swimming animations, and change the rigidbody gravity scale so it is more floaty.

  • @yukiyukihanma
    @yukiyukihanma 10 หลายเดือนก่อน

    What if I want to spawn a fixed set of enemies (not randomly)

  • @sharllesse4990
    @sharllesse4990 3 ปีที่แล้ว

    we are in 2022 still super helpful ty!

  • @samg5183
    @samg5183 ปีที่แล้ว

    its will work with games top and down? thank you

  • @ptaroworm7887
    @ptaroworm7887 2 ปีที่แล้ว

    If wave 2 or more doesnt work move the event in the animation to just before the last frame

    • @chronoabi
      @chronoabi  ปีที่แล้ว

      Thankyou bro It worked for me somehow but many people are this problem so I will pin your comment

  • @dragonballz3686
    @dragonballz3686 3 ปีที่แล้ว

    Bro, how to make a set of enemies coming in a straight line or forming sine wave or in a circle formation like space shooter games.

  • @NanaKitty-tiger501
    @NanaKitty-tiger501 ปีที่แล้ว

    Is there a way to give the boss it's own spawn point?

  • @zinou_RR
    @zinou_RR 4 ปีที่แล้ว +2

    Why enemys from the second Wave dont spawn ?!

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Does it play the animation after killing all the enemy from the first wave?

    • @zinou_RR
      @zinou_RR 4 ปีที่แล้ว

      @@chronoabi Yes

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Well did you setup the event properly . That might also be the problem. If not then download the final verson and put the project in a scene and compare it with your. That may also help

    • @zinou_RR
      @zinou_RR 4 ปีที่แล้ว

      @@chronoabi I Have your project but still not working

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      My project is not working either

  • @ikky2217
    @ikky2217 2 ปีที่แล้ว

    This was some Great tutorial about wave spawn. I have a question, how to make the spawn wave infinite with each next wave will adding number of enemy (for example adding 2 more)

    • @chronoabi
      @chronoabi  ปีที่แล้ว

      probably continuing spawning enemies until player is dead

  • @scottgreen6516
    @scottgreen6516 4 ปีที่แล้ว

    Hi! Thanks so much for this tutorial. I'm following along and everything looks good so far, but when I get to 10:25 and attempt to play the game and see if my enemies are spawning I get the following error: IndexOutOfRangeException: Index was outside the bounds of the array.
    Could you please help me with this at all?

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Its probably a problem with the array,maybe you didn't put all the enemies properly or maybe the spawn points . That may be thats the problem , if not then double click on the message and it will take you to the line of code where there is the problem and we can solve it from there

    • @scottgreen6516
      @scottgreen6516 4 ปีที่แล้ว

      @@chronoabi thanks so much for the quick reply! the line it takes me to is this: currentWave = waves[currentWaveNumber];
      should I pm you my script to not make this comment section all messy?

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Yeah send me a link of your code from hatebin.com (pest your code there and save it to get link then peste your link here). And try to compare code with the final version I made(link is in discription).

    • @scottgreen6516
      @scottgreen6516 4 ปีที่แล้ว

      @@chronoabi okay, here it is: hatebin.com/qfjkthujhu
      It may be worth noting that at the moment I only have one type of enemy, but I have set "Type Of Enemies" in the inspector to "1" to reflect this

    • @scottgreen6516
      @scottgreen6516 4 ปีที่แล้ว

      @@chronoabi Oh! I figured out my problem. Please don't worry about it. Thanks so much for the awesome video!

  • @ThatGuyHelm
    @ThatGuyHelm 2 ปีที่แล้ว

    I am a little into the video and as much as the wave spawns the correct amount of monsters, the enemies are invisible but can still kill my player. Any suggestions?

  • @mustafaay5156
    @mustafaay5156 3 ปีที่แล้ว

    Thank you so much for this tutorial BOOOSS

  • @zainrais6544
    @zainrais6544 4 ปีที่แล้ว +1

    Hello my friend why at the 2nd wave nothing spawn ?If you have the same problem can you fix it please ? ( I dowloaded your project and toke your script )

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      And did it work??

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Many people are having the same problem. And I couldn't figure out anything just by asking them "did you do this/did you do that". So please share me your project privately. I have a discord server and I am Abhi in that server. Dm me

    • @raidoksgames3510
      @raidoksgames3510 4 ปีที่แล้ว

      Put your spawnNextWave Before GO And after 1 And It will work

  • @amirrezarabani7861
    @amirrezarabani7861 11 หลายเดือนก่อน

    Thank Youuuu ❤❤❤❤❤

  • @FortniteBalls9669
    @FortniteBalls9669 3 ปีที่แล้ว +2

    Does this work on the newest Unity version?

  • @raulaqshal4673
    @raulaqshal4673 3 ปีที่แล้ว

    Uhnm i have an issue. The SpawnNextWave isn't called in video and where i supposed to called it?

  • @10secanimations51
    @10secanimations51 4 ปีที่แล้ว +1

    does this work in a top down game do i need to change anything else?

    • @10secanimations51
      @10secanimations51 4 ปีที่แล้ว

      i mean i watch some tutorials and my enemies are in the Z coordinate +300 and thats a big problem

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Yes it works on top down games too

    • @chronabigaming509
      @chronabigaming509 4 ปีที่แล้ว +1

      @@10secanimations51 just put your spawn positions on +300 that will help

  • @zilvanilab7219
    @zilvanilab7219 3 ปีที่แล้ว

    hi. i know its a year since you uploaded this, but i am having a little problem with the wave spawner. So when i start the game all the enemies spawn as it should, but after that it doesnt trigger. but this only happens whit the first wave it works fine with the rest. i hope you can help.

    • @Mushfiqur_Rahman
      @Mushfiqur_Rahman 3 ปีที่แล้ว

      Check if you have any other object tagged as "Enemy"

  • @2ksp235
    @2ksp235 2 ปีที่แล้ว

    Great tutorial I did the same thing but my enemy has been resized and look really really tiny

  • @mawebbzz
    @mawebbzz 4 ปีที่แล้ว

    Hello, Great tutorial I just have one little problem... My enemies get destroyed during gameplay, however they are not destroyed in the hierarchy hence the wave complete animation never happens... Unless I do it like you did by just deleting them from the hierarchy, what do you think might cause that?

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว +1

      Maybe you are destroying the collider instead of the enemy?? Or maybe you the enemy as a child of some game obj and the child is getting destroyed when you destroy the enemy and the main parent gameobj is getting left behind.

    • @mawebbzz
      @mawebbzz 4 ปีที่แล้ว

      @@chronoabi Okay, I'll let you know if it worked on or not... I shall be checking on that

  • @Yharielsama
    @Yharielsama ปีที่แล้ว

    Hello, I have a problem. My enemies stopped spawning for some reason

    • @chronoabi
      @chronoabi  ปีที่แล้ว

      Can you show me the script. And there is a problem with the event node that spawns the next wave . Maybe that might help.

  • @connorwilson-long1336
    @connorwilson-long1336 2 ปีที่แล้ว

    Is there a way to spawn in some normal enemies with the boss , but not spawn in more than one boss?

    • @chronoabi
      @chronoabi  ปีที่แล้ว

      Probably just add a tag of boss to the boss and code it so that bossNumber will not be more then 1. Sorry for the late reply and hope this helps.

    • @connorwilson-long1336
      @connorwilson-long1336 ปีที่แล้ว

      @@chronoabi this actually helps a lot. thx

  • @tiagojanuario6330
    @tiagojanuario6330 3 ปีที่แล้ว

    very good tutorial, congratulations !!!!

  • @mikel2fine
    @mikel2fine 4 ปีที่แล้ว +1

    What if I don't want the enemies to spawn randomly. How do I change the code?

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว +1

      How do you want to spawn then? Like a probability system??

    • @mikel2fine
      @mikel2fine 4 ปีที่แล้ว

      @@chronoabi I want the enemies that I put in each wave to spawn exactly like that. For example, in wave 3, I have 3 enemies, that means in size I put 3. These 3 different enemies are 3 different prefabs, not the same copy of 1 enemy. so with the current script, when wave 3 is active, 1 or 2 or all of them will be duplicate. I don't want this. I want that all 3 different enemies will be spawned, not chosen randomly from the 3. Did you understand my explanation?
      Your help would be fantastic! 🙏 🙂

    • @mikel2fine
      @mikel2fine 4 ปีที่แล้ว

      @@chronoabi still waiting. I really need this solution. Its a big part of my game :)

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว +2

      So this is a rough version of what you wanted . Please try improving on it
      using UnityEngine;
      using UnityEngine.UI;
      [System.Serializable]
      public class Wave
      {
      public string waveName;
      public int noOfEnemies;
      public GameObject[] typeOfEnemies;
      public float spawnInterval;
      }
      public class WaveSpawnner : MonoBehaviour
      {
      public Wave[] waves;
      public Transform[] spawnPoints;
      public Animator animator;
      public Text waveName;
      private int enemyNo;
      private Wave currentWave;
      private int currentWaveNumber;
      private float nextSpawnTime;
      private bool canSpawn = true;
      private bool canAnimate = false;
      private void Update()
      {
      currentWave = waves[currentWaveNumber];
      SpawnWave();
      GameObject[] totalEnemies = GameObject.FindGameObjectsWithTag("Enemy");
      if (totalEnemies.Length == 0 )
      {
      if ( currentWaveNumber + 1 != waves.Length )
      {
      if ( canAnimate)
      {
      waveName.text = waves[currentWaveNumber + 1].waveName;
      animator.SetTrigger("WaveComplete");
      canAnimate = false;
      }
      }
      else
      {
      Debug.Log("GameFinish");
      }
      }
      }
      void SpawnNextWave()
      {
      currentWaveNumber++;
      canSpawn = true;
      }
      void SpawnWave()
      {
      if (canSpawn && nextSpawnTime < Time.time && enemyNo!=currentWave.typeOfEnemies.Length)
      {
      GameObject enemy = currentWave.typeOfEnemies[enemyNo];
      Transform randomPoint = spawnPoints[Random.Range(0, spawnPoints.Length)];
      Instantiate(enemy, randomPoint.position, Quaternion.identity);
      currentWave.noOfEnemies--;
      enemyNo++;
      nextSpawnTime = Time.time + currentWave.spawnInterval;
      if (currentWave.noOfEnemies == 0)
      {
      canSpawn = false;
      enemyNo = 0;
      canAnimate = true;
      }
      }
      }
      }

    • @mikel2fine
      @mikel2fine 4 ปีที่แล้ว

      @@chronoabi okay thanks so much. I will study it now and try to implement it :)

  • @CalmingWinds
    @CalmingWinds 4 ปีที่แล้ว

    Is there an easy way to have a delay in-between waves instead of based on cleared enemies?

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      I think there is but I just went with this. If you do find one let me kno :)

  • @fikriar9739
    @fikriar9739 4 ปีที่แล้ว

    Amazing, finaly someone make it right!!

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Glad I could help

  • @Yoyoitsmemesadhahahaha
    @Yoyoitsmemesadhahahaha 2 ปีที่แล้ว

    If you having the problem of not working after the wave 2 finishes, i find it useful to move to canSpawn boolean from SpawnNextWave() method to update method and put it right above the canAnimate boolean (canSpawn must be set to true and canAnimate to false.)(I will write the code here)

    • @mimsadsafarpour6592
      @mimsadsafarpour6592 2 ปีที่แล้ว

      sing System.Collections;
      using System.Collections.Generic;
      using UnityEngine;
      using UnityEngine.UI;
      [System.Serializable]
      public class Wave
      {
      public string waveName;
      public int nuOfEnemies;
      public GameObject[] typeOfEnemies;
      public float spwanInterval;
      }
      public class WaveSpawner : MonoBehaviour
      {
      public Wave[] waves;
      public Transform[] spawnPoints;
      public Animator anim;
      public Text waveName;
      private Wave currentWave;
      private int currentWaveNumber;
      private bool canSpawn = true;
      private bool canAnimate= false;
      private float nextSpawnTime;
      private void Awake()
      {
      anim = GetComponent();
      }
      private void Update()
      {
      currentWave = waves[currentWaveNumber];
      SpawnWave();
      GameObject[] totalEnemies = GameObject.FindGameObjectsWithTag("Enemy");
      if (totalEnemies.Length == 0 && currentWaveNumber+1 != waves.Length && canAnimate)
      {
      waveName.text = waves[currentWaveNumber + 1].waveName;
      anim.SetBool("WaveComplete", canAnimate);
      canSpawn = true; //Notice that I moved this from the method below.
      canAnimate = false;
      }
      }

      void SpwanNextWave()
      {
      currentWaveNumber++;

      }
      void SpawnWave()
      {
      if (canSpawn && nextSpawnTime < Time.time)
      {
      GameObject randomEnemy = currentWave.typeOfEnemies[Random.Range(0, currentWave.typeOfEnemies.Length)];
      Transform randomPoint = spawnPoints[Random.Range(0, spawnPoints.Length)];
      GameObject cloneObject = Instantiate(randomEnemy, randomPoint.position, Quaternion.identity);
      cloneObject.SetActive(true);
      currentWave.nuOfEnemies--;
      nextSpawnTime = Time.time + currentWave.spwanInterval;
      if (currentWave.nuOfEnemies == 0)
      {
      canSpawn = false;
      canAnimate = true;
      }
      }
      }
      }

    • @Yoyoitsmemesadhahahaha
      @Yoyoitsmemesadhahahaha 2 ปีที่แล้ว

      I just copied the code (using different account)

    • @600do
      @600do 2 ปีที่แล้ว

      @@Yoyoitsmemesadhahahaha I notice You skipped the "u" from the first line.

  • @kwipxd
    @kwipxd 2 ปีที่แล้ว

    bookmark: 30:40

  • @goblinslayer6375
    @goblinslayer6375 3 ปีที่แล้ว +2

    Oh shit No 14:45 My Focus rate drop to zero 😂.

  • @karambultaif6248
    @karambultaif6248 3 ปีที่แล้ว

    its not working, the first wave completly fine, but the second one doesnt appear, the animation ehtier

    • @HarjaapSingh
      @HarjaapSingh 2 ปีที่แล้ว

      Move your SpawnNextWave() event before the Go and after the 1 in your 3,2,1,GO animation

    • @mimsadsafarpour6592
      @mimsadsafarpour6592 2 ปีที่แล้ว

      @@HarjaapSingh private void Update()
      {
      currentWave = waves[currentWaveNumber];
      SpawnWave();
      GameObject[] totalEnemies = GameObject.FindGameObjectsWithTag("Enemy");
      if (totalEnemies.Length == 0 && currentWaveNumber+1 != waves.Length && canAnimate)
      {
      waveName.text = waves[currentWaveNumber + 1].waveName;
      anim.SetBool("WaveComplete", canAnimate);
      canSpawn = true;
      canAnimate = false;
      }
      }

      void SpwanNextWave()
      {
      currentWaveNumber++;

      }

    • @mimsadsafarpour6592
      @mimsadsafarpour6592 2 ปีที่แล้ว

      I had the same problem, You have to move canSpawn boolean from NextSpawn() method to the if statement in the condition. This solved the problem . I left the code for you .

  • @marceyjaguar8798
    @marceyjaguar8798 4 ปีที่แล้ว

    How do I find the enemies' current position in another class?

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      You can use gameobject. FindObjectsWithTag("enemy" ). This will find all the object which has the tag enemy then just do a foreach( enemy in enemies) and the inside write something like enemy. Transform. Position

    • @marceyjaguar8798
      @marceyjaguar8798 4 ปีที่แล้ว

      @@chronoabi Aha, thanks. BTW your tutorials are awesome and helpful👍

  • @A_cool_fish_from_France
    @A_cool_fish_from_France 3 ปีที่แล้ว

    Will this work in 3d as well?

    • @chronoabi
      @chronoabi  ปีที่แล้ว

      I think yes. Sorry for the late reply

  • @jakanater7763
    @jakanater7763 4 ปีที่แล้ว +1

    its not working for me

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      What happened??

  • @ao8462
    @ao8462 2 ปีที่แล้ว

    can i use it in unity 3D??

  • @serdarkaya4557
    @serdarkaya4557 3 ปีที่แล้ว

    hello... Thanks for video...

  • @adityasahu5262
    @adityasahu5262 4 ปีที่แล้ว +1

    I Hope You Will Not Have Any Problem If I Use Your Script For Mine Game Which I am Making For An Game Jam
    [Next Area Is Edited]
    :( I have to download whole project for full script . so finally i decide to write mine won giving half an hour to it.

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Bro the projects I give here you can use it how ever you like

    • @adityasahu5262
      @adityasahu5262 4 ปีที่แล้ว +1

      @@chronoabi thanks I used what you tell with little bit addition so that I can have a noofenemies of a particular type

  • @reacrm3203
    @reacrm3203 3 ปีที่แล้ว

    thnx alot

  • @danlimaanimations6739
    @danlimaanimations6739 3 ปีที่แล้ว

    Amazing

  • @officialtatex
    @officialtatex 4 ปีที่แล้ว

    Can you share the code?

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      The code is in the discription

  • @eh.o.roberth
    @eh.o.roberth 5 หลายเดือนก่อน

    a gente precisa de um tutorial que ensine isso, só que em português.... tá complicado não entender nada...

  • @HamzaKhan-rn8nq
    @HamzaKhan-rn8nq 3 ปีที่แล้ว

    Thanks Alot Sir .Its Helps To Complete My Game.........Debug.Log("ChronoAbI Love")*Infinity.......

  • @raidoksgames3510
    @raidoksgames3510 4 ปีที่แล้ว +3

    Not working lol

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      Really What happened

    • @raidoksgames3510
      @raidoksgames3510 4 ปีที่แล้ว

      @@chronoabi ! I did your Tutorial for the WaveSystem But when I kill every enemys from the First wave . The 2nd wave dont start (it does the same problem to my Friend )

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      hey Try comparing the code from the finished project in the discripting . If that didnt work then show me your code in discord . We will solve it togather

    • @raidoksgames3510
      @raidoksgames3510 4 ปีที่แล้ว

      @@chronoabi ok when Im home I will try

    • @raidoksgames3510
      @raidoksgames3510 4 ปีที่แล้ว

      @@chronoabi Still not working what is your Discord? I will send you some Screens

  • @LinkstaRuViews
    @LinkstaRuViews 4 ปีที่แล้ว +1

    Don't work if totalEnemies.Length == 0. But work if totalEnemies.Length == 1. I don't know why, but this is true. After destroy all enemies count of totalEnemies equal 1, but not 0

    • @chronoabi
      @chronoabi  4 ปีที่แล้ว

      That has happened to me to but it was because I had one enemy on the scene . It was turnd off though . May be that happened in your project too. If not then try downloading the final project and compare it with your's . That will help

  • @hussainmohd601
    @hussainmohd601 2 ปีที่แล้ว

    You say simple it should be less than 10 min choose The Correct word PLZ
    its joke Bro