Resurrection, scripting and websockets
A few bits this week:
Resurrection in nearest town
When the player dies, there's an option to wait for resurrection. Later, this process will be subject to ... a few things, but for now, the player gets resurrected in the nearest town after some time has passed. The player still has all their inventory items intact, although all equipment has been unequipped.
Info box
Currently, the dialogue screen needs some special conversation object to work well, and, well, it requires options. But frequently there's some info screen that should just show some text, but not necessarily be part of a dialogue. One approach would be to reuse the Dialogue screen and edit it until it supports both scenarios, and the other was to have a separate screen. I opted for the latter.
OBS Studio recording via websocket
I want to be able to trigger video recording from the game. Because Godot does not do video well at all, the solution has to be external. After some digging, I realised that with OBS Studio that is possible, via websockets. Effectively we're establishing a connection with a local "OBS Server" in a running instance of OBS, and send a bunch of messages, like start and stop recording. So, if it's already set up to capture the game window, it's easy to start/stop recording from the application. Kludgy but works!
Scripting camera and recordings
I have some camera commands that are useful for scripting and "cutscenes", and they support a number of easing functions. I wanted to identify which easing function works well in which scenario: level or overworld, panning or zooming. After running some tests, I identified a few nice-looking ones, to be used in the future
That's all for today, have a nice weekend!
