Game
Spamocalypse: Aftermath
8 years ago

Spamocalypse 0.7.2: How not to handle sound detection


File this one under “Aceade is an eejit”. I broke the spammers’ sound detection, and I’m not sure when I did that! I didn’t realise that until today, when I started trying to make them react to misses from the SQL injector.

The root cause of this bug is that I had converted their sound detection to use a Coroutine with a 0.2-second interval, rather than OnTriggerStay. OnTriggerStay runs on the physics timestmp, which by default is 50 times a second - which is a bit more intensive than I wanted. However, when converting it, I forgot to actually make it run more than once (hint: use a while loop)! So, the spammers were effectively deaf, which pretty much defeated the point of the game.

Another thing that was broken was their Sockpuppet detection. This was a physics issue - I had set the Spammer layer to ignore collisions with the Decoy layer. However, that’s the layer which is supposed to contain the Sockpuppets!

I think these were introduced while trying to improve performance a month ago. Those performance issues I ran into were ultimately caused by using MeshColliders as trigger areas for sound and line of sight detection, which is generally a bad idea. However, when I got those fixed, I didn’t think to check if I had broken anything else. I really need to find a way to test more thoroughly…



0 comments

Loading...

Next up

Demo for version 0.4

Smile! Here, take some happy pills! ✨💊 #Blender #3DModelling #3DArt Buy me a Ko-fi: https://ko-fi.com/barbarafb_

Quantum precognition is one of the most powerful cards. End game cards & equipment. Demo/alpha build boss is no match for this deck.

Heya! I wanted to show some gameplay progress i made so far. I hope you like it ^^

So here's the first of the zodiac signs i will make for the next weeks.

Strange Umbrella

Today I tackled drawing different variations of facial expressions for one of the main characters in Eden. What do you think of it? :) Eden: https://gamejolt.com/games/Eden/592698

If you have more of an acquired taste, the restaurants in Niravasi have you covered! Maybe skip the salad bar, though.

Levels' maps.

I mostly build 3D First Person Shooter game mechanics in Unity, and in this I'm just showing C4 mechanics I made for a little side project I am working on! :)