Incredibly clear!! My script didn't allow me to add values in the inspector but I corrected it with chat gpt and it worked. I love that every move is backed up with an explanation, as a student I need to understand why I'm doing it.
I am making a 2D Rocket Shooting Game for my class project, and I have EnemySpawner that will increase the spawn every once in a while, but what I don't know how to do is to make more variants of enemy to spawn. Also I kinda want stages so like the higher stage will have more enemies and variants and then a certain stage will have miniboss and main boss.
@@KetraGames Do you have a vidoe explaining how do you manage to instantiate a bullet in the right angle? What do I need to write in the Quaternion of the instantiate callback? Do you need to compare the Quaternion of the bullet to the angle or direction of the player?
I dont know why but my Enemys are not spawning? It doesnt create the clones or anything, maybe it correlides with another script but to figure that out... ouf idk
Hey for some reason when I add in the spawner it spawns a few in and then the error: ''MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. I assign the enemy prefab to the script but then I get that error after the enemy spawns in a few times
Hi! I have a question, If I use a prefab from a folder outside of the scene, it does not know where the player is because the player is in the scene and in the prefab I cannot use things from the scene to be set as the player, and if I use a enemy that is in the scene, when I kill the original enemy, no more can be instantiated, what should I do?
Hello, i followed the tutorial, and i have an issue where the enemy only appear in the Scene Screen and not the Game screen, why is that? TLDR: The enemy spawned but they are invisible in game screen, but all of their logic is there
Hi, it may be the background is hiding them. Try disabling the background to see if they appear. If they do then you might need to check your layers are set correctly - th-cam.com/video/Hwq-_IyVlVI/w-d-xo.html
instead of Void in method setTimeUntilSpawn() i would do a return; float SetTimeToSpawn() { } on which: if(isRandomRangeEnabled) { ((random range here)) isRandomRangeEnabled = false } timerUntilSpawn -= Time.deltaTime; return TimerUntilSpawn; and then put that method inside update and do if using the method because it returns the timer. The boolean would be in inspector so i could reenable it and have multiple random ranges. if im not mistaken these should work fine
Incredibly clear!! My script didn't allow me to add values in the inspector but I corrected it with chat gpt and it worked. I love that every move is backed up with an explanation, as a student I need to understand why I'm doing it.
Exactly the same for me too, the why is such a big help, it takes me from copying to actually learning.
This is extremely simple to follow and understand! I didn't know it was possible to do this without Coroutine, so this made life easier lol
Great to hear, thank you 😊
very clean and consise! thanks for the help!
Thanks for this comment 😊
Great Video, keep it up!
Thanks for your support 😊
I am making a 2D Rocket Shooting Game for my class project, and I have EnemySpawner that will increase the spawn every once in a while, but what I don't know how to do is to make more variants of enemy to spawn. Also I kinda want stages so like the higher stage will have more enemies and variants and then a certain stage will have miniboss and main boss.
Hi, this video may help you with the variants th-cam.com/video/ivT8wpwhSzs/w-d-xo.html
Thank you! Didn't know it's possible without using Coroutine
Glad it was useful 😊
@@KetraGames Do you have a vidoe explaining how do you manage to instantiate a bullet in the right angle? What do I need to write in the Quaternion of the instantiate callback? Do you need to compare the Quaternion of the bullet to the angle or direction of the player?
Great video, and great explanation, thank you so much
Helpful video! I'm going to try to make my player the enemy spawner where it always spawns right outside the camera's view
Glad it was useful 😊
I dont know why but my Enemys are not spawning? It doesnt create the clones or anything, maybe it correlides with another script but to figure that out... ouf idk
same problem
I solve it , in void update you have to put first _timeUntilSpawn -= Time.deltaTime;
then the other
so i have a spawner with a graphic and want to make it destructable treating it like an enemy
Hey for some reason when I add in the spawner it spawns a few in and then the error: ''MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object. I assign the enemy prefab to the script but then I get that error after the enemy spawns in a few times
Hi! I have a question, If I use a prefab from a folder outside of the scene, it does not know where the player is because the player is in the scene and in the prefab I cannot use things from the scene to be set as the player, and if I use a enemy that is in the scene, when I kill the original enemy, no more can be instantiated, what should I do?
Ive been having the same problem have you been able to fix it its been annoying af
When will you upload more parts of this series? 😢
Hello, i followed the tutorial, and i have an issue where the enemy only appear in the Scene Screen and not the Game screen, why is that?
TLDR:
The enemy spawned but they are invisible in game screen, but all of their logic is there
Hi, it may be the background is hiding them. Try disabling the background to see if they appear. If they do then you might need to check your layers are set correctly - th-cam.com/video/Hwq-_IyVlVI/w-d-xo.html
instead of Void in method setTimeUntilSpawn()
i would do a return;
float SetTimeToSpawn()
{ }
on which:
if(isRandomRangeEnabled)
{
((random range here))
isRandomRangeEnabled = false
}
timerUntilSpawn -= Time.deltaTime;
return TimerUntilSpawn;
and then put that method inside update and do if using the method because it returns the timer. The boolean would be in inspector so i could reenable it and have multiple random ranges.
if im not mistaken these should work fine
thank you very much ! I tried by myself but could'nt make it work
The enemys spawn but theyre like hidden in game view
fixed it! i changed my near clipping planes to 0 instead of 0.3
Glad you worked it out 😊
Same problem
Video hay lắm ạ.
Why cant i see my enemys
set sprite renderer order in layer to 15 which makes them priority on showing in your screen
maybe check your spawner z axis i had the same issue and the z was set to -10 so they could see me and interACT with me but i couldnt see
I have made it so that the spawning is working but when they spawn they only stand still and wont move, how do i fix this?
(fixed)
How to fix it??
Dört kelimelik destek yorumu