2:28pm - There's one big bug in my game jam game and I'm trying to squash it, and it's particularly pernicious and makes no logical sense.
Basically, when you die and reload, sometimes the 'You Died' screen stays in the background of the level when it loads.
If you follow the code step by step, there is no reason for this to happen, but it does. Furthermore, one of my testers said that they also had the player appear twice in the same level, which can only happen if the level is loaded on top of itself. Same bug I'm pretty sure.
Anyways I figured that the problem must be that things aren't happening when they're called, which makes sense since I had to use some special code to let things happen out of order. My solution was simple, I'd wait until those things gave a signal that they were done, and then I'd continue. A bit brute force, but it should work.
There's no apparent change in the game, though, and the bug is still there.
I keep changing this and that with no difference and it's very frustrating.
It can't be moving on until it's gotten the signal that the previous one is unloaded, and yet the previous one is still there!
So I figured, also I should wait until the other ones are loaded, and only proceed after that. But that also made no difference.
So, I have frustration!
4:35pm - I think I've fixed it. I had to totally re-write the level loader. It's much cleaner now, which is good, and it seems to work with no bugs, which is better.
Now I'm going to upload it to itch.io and make sure it works.
4:40pm - It works, but I forgot to change the ending text to the funny thing from last night. So I'll do that and reupload.
5:25pm - Everything's uploaded, some people have started playing it, and I'm going to take a break unless a big issue comes up I need to fix.
I suspect tomorrow it will be back to usual for me.
Basically, when you die and reload, sometimes the 'You Died' screen stays in the background of the level when it loads.
If you follow the code step by step, there is no reason for this to happen, but it does. Furthermore, one of my testers said that they also had the player appear twice in the same level, which can only happen if the level is loaded on top of itself. Same bug I'm pretty sure.
Anyways I figured that the problem must be that things aren't happening when they're called, which makes sense since I had to use some special code to let things happen out of order. My solution was simple, I'd wait until those things gave a signal that they were done, and then I'd continue. A bit brute force, but it should work.
There's no apparent change in the game, though, and the bug is still there.
I keep changing this and that with no difference and it's very frustrating.
It can't be moving on until it's gotten the signal that the previous one is unloaded, and yet the previous one is still there!
So I figured, also I should wait until the other ones are loaded, and only proceed after that. But that also made no difference.
So, I have frustration!
4:35pm - I think I've fixed it. I had to totally re-write the level loader. It's much cleaner now, which is good, and it seems to work with no bugs, which is better.
Now I'm going to upload it to itch.io and make sure it works.
4:40pm - It works, but I forgot to change the ending text to the funny thing from last night. So I'll do that and reupload.
5:25pm - Everything's uploaded, some people have started playing it, and I'm going to take a break unless a big issue comes up I need to fix.
I suspect tomorrow it will be back to usual for me.