Комментарии:
*When I'm explaining common patterns found within OnTriggerEnter2D, the code should look like
if (collision.gameObject.tag == "Enemy")
or
var enemyComponent = collision.gameObject.GetComponent<Enemy/EnemyHealth>()
Sorry :)
Nice bro❤
Ответитьty this video. can you create a video, how can shoot in the air (while we jumping) or in running?
ОтветитьGreat tutorial! For some reason the projectile only moves right, regardless of which way the player is facing. Would love some pointers to this problem!
ОтветитьGreat stuff
ОтветитьI got some problem when i face left side i cant lauch my fireball . It just stay on the ground why?
ОтветитьThanks for such a nice tutorial. Keep making this type of tutorials to help the beginners like me😄
Ответитьwhats inside fireball prefab
Ответитьhow would I make this script work the input system manager?
Ответитьwtf jumpScare
Ответитьdude what's with the ending man? srsly lame dude. ty for the tutorial btw
Ответитьhi gr8 video btw, but quick question whenever I left click on my mouse the fireball is spawned however it doesnt move but the one that has been placed before hand does move do u hv a solution?
Ответитьhello,,, nice explanation. but i have trouble on my fire position. it doesnt rotate with player facing. :(
ОтветитьI got scared of that giant snowman what a noise.
Ответитьhowwwwwwwwwww to add gameobject without add it in scene ????????????????????????!
Ответитьcan i copy the code pls help me i dont know how to code
Ответить:D liked the ending .
Ответитьi cant see what comes after initialize
ОтветитьHello! I need help. In the projectile script, I set the collission tag to be equal to enemy. This is my code:
void OnTriggerEnter2D (Collider2D col)
{
if (col.tag == "Enemy")
{
Instantiate(ImpactEffect, transform.position, Quaternion.identity);
Destroy(GameObject.FindWithTag("Enemy"));
Destroy(this.gameObject);
Destroy(ImpactEffect.gameObject);
}
I wanted the enemy, the projectile and the impacteffect to be destroyed so i put the code above. It worked for the first few enemies but I tried it on other enemies it only destroyed the projectile but not the enemy. I am only using one enemy and the enemy is in a form of a prefab. Is there a way to fix this? Is there a way for the projectile to hit the target and that target to be destroyed and not some random game object tagged enemy? help plss huhu. Thank you! :)
Hello everybody, I guess someone will get trouble at impactEffect when it not disappear.
So I have an easy solution to resolve: Select your impactEffect prefab and create a script then call Awake and destroy game object. (exp: Destroy(gameObject, 0.7f);)
Thanks for the author of this video !!
Asset 'Player': Transition 'AnyState -> idle' in state 'AnyState' doesn't have an Exit Time or any condition, transition will be ignored
ОтветитьWow, thank you!!!!
Ответитьplz help me i getting a error while when I enter the play mode and i release one fireball it destroys OK as asully,but when I release my fireball again its showing error that(gameobject is destroyed you cant release again)
ОтветитьPlz make a video On Gun flash and then fire bullet
ОтветитьYour tutorials are amazing. Thank you so much.
ОтветитьT h a t w a s E n t e r t a i n i n g.. Also learned stuff.. So thanks!
ОтветитьGreat! Made it work in an endless runner with a cooldown system
ОтветитьGreat video! Is there anyway to have it shoot to both the left and right. I really do not know how to do this on my own so if you can explain it in very specific detail that would be great.
Ответитьthe impact effect doesn't delete. It keeps looping
ОтветитьWhen i have rigidbody2d on projectile it just falls when shooting, other than that it was awsome
ОтветитьI subscribed cuz the boss snowman looks too powerful and I'm low on fire xD
Really epic content!!!! What software did you use to design the ninja character and snowmen etc?
Can u make a tutorial on how to make your snowman fire projectiles towards the player?
ОтветитьIm having trouble. My Impact effect is spawing instead of my projectile
ОтветитьMy projectiles just dont show up when i shoot left, they show up in my scene mode but when u look through the actualy game mode they dont even appear
ОтветитьAWESOME Video! Thanks a lot man. I love the humor as well, it's a bit refreshing after watching so many other monotone voices in tutorials.
ОтветитьHey great video but is there anyway to destroy the impactEffect gameObject after it plays through the animation once?
Edit: I found a solution using a timed Destroy in another script, but if you know a way to do it inside of the collision trigger that would be helpful.
that ending have me a heart attack, also wondering why it works only facing right and it doesnt shoot when the player is facing left?
ОтветитьI'm just a minute in the video and I can definitely tell you need more subscribers. Keep it up man!
ОтветитьNeed help, when ever i shoot to the left it just keeps firing at the right..
ОтветитьGreat tutorial!! I would like to see this as a playable game! Winter ninja's vs evil snowmen :)
Ответитьcool fireball effect. how would you take damage instead of destroying the gameobject it hits?
ОтветитьThanks for the videos
ОтветитьYou make a good video B
Ответить