l-l e | | 0
everyone, it's me again!
Welcome back to another Devlog!
This is a small one! The reason I'm posting this, is because I haven't posted in a while...
But don't worry, because we are back on the track!
1. New item: The Replacement Bulb
When you have a bumper and you crash into a mine, you survive it. Pretty simple stuff, right? But there are some side effects to surviving a crash. For example, the light inside the cabin will start flickering.
I added The Replacement Bulb to make it fixable.
***I have both modeled it and programmed its logic, so it's finished. But I will probably rewrite the logic since the current code doesn't work well with the inventory system.
2. Finally fixed the stupid error!:
There was an error that was bothering me for a very long time and I have been ignoring it. But I finally managed to fix it!
The error would happen when pausing the game. It was a NaN (Not a Number) error.
NaN error are usually a headache to deal with because they don't occur too often and they are hard to track.
The error was caused because when the game is paused, Time.deltaTime is set to 0.
I was using deltaTime to calculate velocity but that was a huge mistake!
Because when the game is paused, the script will try to forcefully divide the velocity by 0!
Velocity = Distance / Time.deltaTime
aaand, we all know how that goes...
3. Added a flasher to the ejection door:
Uhhh, I don't want to explain this too much because I can't.
It's simple!:
-When the door is open, flash green.
-When the door is locked, flash red.
4. An update to Pixelixel!:
Pixel got some new features!:
-The replay button
-The continue button
These buttons are used for interacting with the tutorial videos!
4. Added some environment noises to the shop scenario:
"hmm, some strange sounds are coming from the distance. It sounds like... some sort of machine. Its cogs are spinning loudly, as if they are right in front of me. but I can't see it! am I blind? or have I been blinded?"