Spooky Fishy

In Depth you play as a submarine trying to make your way through an underwater cave while being chased by a spooky fish (left one). As this spooky fish is kinda an important part of the game I thought it would make a good first post.

The Chasing

The creature fish thing is pretty big (image below), so trying to make him navigate through the cave seemed like a big task, so I instead decided to make him move in the background behind the cave walls, the group agreed on this decision so I went with it.enemy normal asset decapitatedLARGE

Since he wouldn’t be interacting with anything using physics, I dropped any rigidbody business for him, and just went with using the transform component for movement instead of forces (will probably talk about those in another post).

He has a constant speed on the x axis (for now), but on the y axis I wanted him to follow the player at an ominous pace. So I’m getting the position of the player and using the ‘SmoothDamp’ method on vectors to smooth the movement out. This makes the creature look more like it’s chasing the player, not just copying his movement, which would be the caseif I had just given the monster the players position with an offset.

The Spooky Feel

Right now the game is pitch black outside the light sources, a problem with this is that the player can’t see the creature till it’s biting his/her ass. To solve this, and make it more spooky, I wanted to give the creature some lighting. At first I tried just using point lights, although this works great for the eye, it doesn’t for bigger areas with irregular shapes, like the the mouth.
SpookyFishy2
The mouth ends up with two spots where the two light sources are strongest, the other option is to have one big light, but it would light up more than just the mouth. Because of this I started messing with emission materials, where the texture itself would give off light. Sadly this did not lead anywhere (yet), I had other things that needed doing, and had to put it in the ‘Mabye’ bin. Another solution is lighting masks, but haven’t yet tried that. So for now the creature only has the eye as the lit up part, but it is workable to give the player a sense of where the creature is positioned, and will work for now.

Final Thoughts

I like where the creature fish thing is heading, but I definitely want to give him/her/it some more love, like more lights, variable speeds on the x axis, and mabye some other stuff. But this will do for alpha, I’m more for quantity then quality right now until all the stuff we need is in there, then I can give it some more polish.
Well, that’s it for me, hope whoever got the job of reading this didn’t want to end themselves while slogging through.

 

 

About Wiktor Ravndal

2017 Programming