Комментарии:
hey man....i got an error mine is melee attack so i set my attackhitbox on the OnTriggerEnter2D so when the player strikes the enemy it will get hit. i set a Tag for the attackbox..but i got this error Value cannot be null everytime i strike
ОтветитьNice one Lost Relic - using this in my project now
ОтветитьThank you.
ОтветитьDo you have any visual methods to follow for Enemy AI where after you die they stop attacking? I already have a call code for its actions working for movement, attacking and following but once my health is at 0 and im dead i want the enemy to stop all action. And yes my project is 2D sprites
ОтветитьDid some of these methods change in Unity 2021? I typed the same code as you did and unity is saying that the type or namespace "collision" could not be found ;/
ОтветитьThanks for this! I was creating animations for everything that got it. Saved me so much time.
ОтветитьDo u have a any tutorials on applying sprite fx animations to existing sprites? (Attack hit explosion attached to enemy sprites) 🙏 thanks so much
ОтветитьNice tutorials and clean to follow, Thankyou so much :D
ОтветитьThank you my Brother
Ответитьso fucking useful
ОтветитьAfter I died 1 or 2 times, the particles dont appear. PLS HELP.
Ответитьwhen i do this myh character makes the explosion but he doesnt dissapear he just stays there what do i do? (i am using oncollisionenter2d to kill the enemy with a bullet)
ОтветитьHELP pls .... when i hit the enemy he doesnt flash at all tho he dies(dissappear) after 5 hits ......idk why i tried everything and its not working pls help!!!
ОтветитьIt's fun listening to you because you yourself is excited! Truly a passion!
ОтветитьThis is awesome! A great way to acknowledge enemy damage without interrupting animations! Thanks so much!
Also, as a side note I couldn't get this to work with a private matFlash variable. It would make the spriterenderer disappear completely. Instead I opted to make the material matFlash public, and drop in the WhiteFlash material I made and remove the code that pulls it from the resource folder. This worked like a charm!
Nice tutorial man
ОтветитьThanks John..
ОтветитьLooks nice! Please make more megaman tutorials :))
ОтветитьIs there a reason why you didn't just change the color of the sprite renderer?
Ответитьvery helpful. Thank you
ОтветитьThanks for the video, but damn it takes longe to get on the flash part xD
Ответитьcan you add subtitles please
ОтветитьI need help pls, when ever the bullet hits the enemy it pauses how do i fix it ???
ОтветитьReally nice and fun thanks
ОтветитьI gotta say, I had a lot of VERY poorly implemented time-based events in my game, thank you so much for showing me that Invoke() exists!
ОтветитьI followed each & every step d way you did,I added the WhiteFlash in Resources, along wid tagging the Bullet to bullet tag(one you added in d comments box),then too my bullet is not hitting enemy,it is just passing beyond the enemy,Please help,I know I have did a minor mistake,but I can't figure it out
ОтветитьU r Awesome man,Keep up d good Work
ОтветитьHey, new big fan of your vids, they're pretty useful. I'm having a bit of a problem tho, my animation simply doesn't show on the Game tab but is does on the Scene tab. I'm pretty sure is layers problem but I don't know how to solve it. Someone help me, please.
ОтветитьHey, uhm, do you know by any chance if you can do this in ue4? Ive searched everywhere but this is the closest tutorial about the 2d player/enemy getting damaged and flashing white. Thanks in advance if you do so
ОтветитьI don't have the white flash in my resources folder.
ОтветитьI tried this on Unity but the bullet passes the enemy and I got a error saying “Tag: Bullet is not defined.
ОтветитьHi John! I just wanted you to know that your tutorials are the best, not only for the right answers but also because you are pretty fun boy.
I've been developing my own game in a while now and I can say that you helped me quite a bit.
Thanks.
Hi! Thanks for the tutorial :) Do we have to create the ResetMaterial just like we did with the Whiteflash material?
ОтветитьI just randomly came across this tutorial while searching for something else. Your hit flash implementation was better than mine so I updated my project to use your method. Many thanks for the video and for the information!
ОтветитьThe particles render behind the background of the game is there any solutions for this
ОтветитьGreat video. I had a quick question. This is working great for my player characters that use ranged weapons, but when I use a melee weapon I run into the following issue. When it strikes the enemy, the appropriate damage and effects occur. I set my AttackHitBox for the weapon as a trigger, so I don't run into any issues with never really hitting the enemy. However, once I effectively hit the enemy, unless I move away from the enemy (or more precisely I take the hit box area off the enemy) it will not reset the attack function. So I can sit there hit the enemy, it performs correctly once, then hit it an infinite number of times doing nothing. If I move away...it will reset and work. Any idea on what I am missing or doing wrong? So if I am using OnTriggerEnter2d and the enemy never leaves it will never enter again. Thank you ahead of time!
Ответитьis it not better to use public gameObject ? For the prefab explosion
Ответитьthe whiteFlash still not working??!!
ОтветитьThanks ... l will add this video in my libary
ОтветитьWhen I put in the code for the Particle Effect in Visual Studio it doesn’t work
ОтветитьI'm new to coding in unity/c#, but it's not better use a StartCoroutine to do the Blink/ResetBlink part ?
ОтветитьThe particle sysstem tool is very frustrating.
when experimenting you click diffrerent settings on/off to see what it does etc... sometimes when you click stuff (looping) for example all the particles disappear but then clicking the box again doesn't bring them back and nothing you do from there brings them back so you have to delete the particle system and start again! anyone else experience this???
turn that bug into a game hahah
ОтветитьThanks for talking normally. Some of these guys doing Unity tutorials talk like they're trying to sell you something.
ОтветитьMan, you videos are awsome, great job!
ОтветитьI needed this tutorial for a completely different reason that solved my problem
Liked and subbed
hello great tutorial.. i need some help. when I make multiple enemy prefabs of the same enemy, whne I damage one enemy , all enemies get the same damage even if my bullet doesn't touch them.
Ответить