Bugfixing


So the game had two bugs, one was pretty major. Let's talk about that.

The Demon sound got stuck on a door. Yep. What was the issue? Race conditions. Did I pull my hair out trying to fix it? Yes.
In short, I used the sound reset function I made for the Demon movement. The is supposed to be the execution order: Sound disabled, Demon moves. But when the Demon moved because the player left the room on a Knock event, the order changed: Demon moves, Sound disabled.
So essentially, the Demon's sound got stuck. It can get reset, if the Demon and the player are in the right room, but yeah..
So this got fixed!

The other bug was you being able to hear the Demon for a single frame, if you fled your room on a knock event.
Turns out this is a Godot problem. Not a problem problem, but I wasn't aware on how it worked. Long story short, in this special occasion, the Demon was moved first, then the player. The solution was to just wait a single frame with the Demon movement.
So this is fixed now! yey!

Files

My Night Demon Cat Update (BUGFIX).rar 75 MB
83 days ago

Get My Night Demon

Leave a comment

Log in with itch.io to leave a comment.