Assignment 3 Progress Update
I see I have forgotten to make a progress update about assignment 3. So here it is, but a little late :) I'll write about some of the new things I learnt during the project and some struggles I stumbled upon.
While watching some online tutorials I learnt that it's possible to make folders for the events. Making the code look ALOT cleaner and easier to manage. For some reason the folders are hidden in "(right-click an event) -> add... -> event group". I think I would make something as useful as this more accessible.
I couldn't find a good way to make chat bubbles or handle UI popups, so I made it like the video above instead. When approaching a specified area, the chat bubble will appear at the bottom of the screen. When you move away, it will disappear. I think this was an okay solution.
Struggles
I had some trouble finding a good way to save global variables to a file, and then load them on startup. I found some video tutorials on the subject, but they didn't work for me. When the game is closed and reopened, all the stats are unfortunately reset back to default values. However, there should only be two lines of code necessary to fix this. One to save the values to file, and one to read them.
Another problem I had is that the ammo in the guns are always set to "1" when starting a new scene. I tried to update them using some events, but nothing worked. So the solution now is that I force a reload whenever entering a new scene. It's not perfect, but it works better than having players fire 1 bullet and having to reload.
Next up
Now we're already in the middle of the playtesting phase. Only a few more playtests and we're good to go. I'll make another update when all the playtesting is finished :))












