Random comments (Patreon)
Content
Okay so I have the basic framework for characters randomly saying stuff in the world.
It was a little trickier than I wanted and I still need to fix a few key things.
So getting the text to track on screen was a little hard. Initially I tried to make it in the "world" but it becomes hard to read and isn't always aligned with the camera in a way that makes it easy to look at.
So I changed the system to track the point on the screen where the character was. Which it turns out in a game where you can adjust the resolution and screen size is harder than I thought. I had a previous solution that I discovered does not work.
I'm not fully satisfied with exactly how it looks. It's certainly working but I think it still needs a background so you can read the text more clearly, maybe a little speech bubble arrow would help you tell who's talking.
You can see as the camera moves it's a little hard to read. But I think giving it a background will solve much of that issue. I'm looking at fixing the frequency too.
The current setup will make sure the same person won't say two things in a row. Otherwise it just seems odd. I've also limited how frequently a comment can be made. However, I think I need to add an element of randomness as well as make sure the same comment can't be said two times in a row.
If I can get those functions in I will link it to the same type of dialogue systems so they can make a few comments specific to what you are wearing. It's hard to tell how well this will work until I've added a few bits of polish as well as some actual text into the system.
However, I think even if it's only a few random commnets it will help the world feel alive. Anyway, that's all for now! I hope to have this done and in the game over the weekend then I'm going to do a little bug fixing!