Damage, Defeat, Fixed Movement & Hitboxes - Unity Game Development - Scorchid - WIP Wednesday 44

Опубликовано: 14 Март 2025
на канале: Aspiring Hero Games
56
10

#indie #indiegamedev #gamedev #gamedevelopment #gamedesign #wipwed #wipwednesday #blender #unitygamedev

Welcome back to another Work In Progress (WIP) Wednesday! I am designing a fantasy video game, and these videos are designed to show the process of creating a video game in Unity. I'll describe where I'm at in the game development process, what I'm working on currently, and show some of the features as they're being developed.

In this week's video, I've created a few more animations for the Scorchid, and fixed its wandering movement, so let's take a look at what I've been doing.

The first thing I tackled this week was fix the Scorchid's random wandering. Previously, it could move a fair distance whilst trying to turn around, and the speed at which its legs moved did not match the speed at which it moved. I've been able to fix it so that it turns at a much greater speed, and like I did with the player, I used another blend tree to control the speed of the walking animation. As a result, it has much improved wandering behaviour. I really wanted to get the speed of the legs moving at a speed you'd expect from a scorpion-like enemy.

I'll be working on the damage and health features soon, so I thought it would be good to create some useful animations to use once it's up and running. The first is the damaged animation, which will obviously play when the Scorchid takes damage from your attacks. I figured a quick reaction would work well for a speedy enemy.
Next I created the defeat animation, when you finally beat that Scorchid. I've combined writhing of the main body with an indignant stomp of the legs, as I try to capture both pain and frustration.

I've begun work on the hitboxes for the Scorchid too. These are used to determine several things, such as how close you can get to it, which parts of it you can hit to inflict damage, and which parts of it can cause damage to you. At present, you can see what they look like on the Scorchid. All of these boxes will be areas you can hit to inflict damage.

Here it is currently in Unity. I've added some triggers I can hit to run the damaged and defeat animations on the Scorchid. It still needs a bit of work as there's some glitchy behaviour that isn't quite right. For example, if the Scorchid stings the player, you end up spinning around or in the fall animation. Similarly, when the Scorchid dies, it should stop following you, but as you can see, its corpse just trails along behind you, which is spooky to say the least. Plenty to fix to keep me busy anyway!

What do you think about this week's video? I hope you liked it. Let me know in the comments.

Let me know what you think below, I'd love to hear from you!

#########
Facebook:   / aspiringherogames  
Instagram:   / aspiringherogames  

Music by Epidemic Sound (http://www.epidemicsound.com)

Timestamps:
0:00 - Intro
0:13 - Fixing the random wandering
0:54 - New animations
1:17 - Starting work on hitboxes
1:39 - Current status
2:10 - Outro