In this video I give a lecture on different ways to deal damage to objects. Covering collision detection and reaction to dealt damage.
Пікірлер: 11
@PixelatedPope2 жыл бұрын
This video was commissioned by a client for their purposes. If you found it useful, yay! If you didn't find it useful, I don't really care since you didn't pay to have it made. Feel free to leave a comment below telling me what you didn't like about it though, it will help with my engagement numbers.
@gamermasta5252 жыл бұрын
What about time? That is more valuble than money.
@Mightyjordy2 жыл бұрын
@@gamermasta525 he will refund your time
@gamermasta5252 жыл бұрын
@@Mightyjordy I don know
@DarkKnightDad2 жыл бұрын
I watched the other two sermons and now I am on this one. This is awesome content. Also, the KZbin algorithm was harsh on you, because I didn't see your videos in my homepage. It wasn't until I checked your other accounts that I discovered that you made these videos
@PixelatedPope2 жыл бұрын
Well, hopefully as I start making more content, it will get a bit more visibility. Glad you were able to find this one!
@TheGrandMasterFunk2 жыл бұрын
I've been working with these finite state machines since I was 15 and I still have trouble with them lol, great video thanks Pope
@VaughnCampbell2 жыл бұрын
Hey glad you are making videos again!
@Mightyjordy2 жыл бұрын
Awesome video, these are great to fix up a couple bad habits I have for basic stuff
@philosopherhobbs2 жыл бұрын
Great job! Glad to see you back on KZbin. I’ve got one minor bit of constructive criticism and a question. First, and you may know this but forgot here, you are using array_length and list_length within the for-loops. That would be better done before the loops unless of course the loop is changing the size of the array/list, which it doesn't appear to be doing in your code (even then it's better to run the function only when the size changes). Better to just get a number from a local var than run a function every loop. My question is: What would you do differently for a modern top-down game that isn't straight top-down nor straight side-on? With a fake-3rd axis, it seems like the hit box would need a bit more tweaking to get it to line up right.n
@PixelatedPope2 жыл бұрын
So first comment: this is a micro optimization, and I typically avoid worrying about them (Commandment XIII). The difference performance wise is beyond negligible, so I prefer to maintain my coding style over worrying about it. The same could be said about repeat loops versus for loops. Are repeats faster? In theory. Am I about to change all my for loops to repeats? Absolutely not. So in top down games (like zelda, secret of mana, streets of rage/final fightt, etc) I position the hitbox as if it was the "shadow" of the attack. So the box would come out of the character's feet and collide with the target's hit box which would also be their "shadow". That tends to work for me.