A young man living in a small colony on Mars tries to find his place in a society without a history.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Post article RSS Articles

Update: Dialogue System

News

UPDATE 04

This week I fixed some bugs with the color shader and now it works much better. A lot of times it would fail completely and just draw the default color, which resulted in many clones. The only problem I still couldn't fix is that there's one head that has 4 different colors (all other heads have less) for the skin, the hair and a baseball cap. Somehow the skin doesn't work properly and flickers randomly. I have no idea what causes this, but I assume it has to do with the shader itself.

Apart from that there's now a working dialogue system in the game! You can run up to an NPC and if he has something to say, a circle appears above his head. As you get closer, the circle gets bigger, then shows a button prompt and if you get even closer a description of the action. I really enjoyed coding this, as I love UI stuff that's responsive to the player. The hardest part was getting the relative coordinates of the NPC position, as the GUI layer in Game Maker has its own coordinates system. This wouldn't be so bad if there wasn't also rotation to take into the equation. Luckily I found a blog post that had a good solution.
Here's the effect I just described:

User Posted Image

Next I implemented a dialogue system. It starts with a little camera rotation to ensure both characters are visible and then it shows the dialog in speech bubbles. At first it was pretty primitive with almost static bubbles. Btw. I bought the text effects on the Game Maker Marketplace.

User Posted Image

The tuning of the speech bubbles took a lot of time. I wanted them to always fit the length of the text, so that it gets bigger for long text or even decrease its width when there's not enough text to fill a line. The code is pretty messy, but now it works and I'll leave it at that for now. I think, next I start putting some ideas for characters and the story on paper. I often think about it, but rarely write it down. I haven't decided yet how much I will be sharing of the story progression, but I'll be working on new scenes and voxel models as well to have some variety.

Here's how dialogues could look like in the final version of the game. I tried to hint to some characters I have in mind, but this is very WIP and everything might change.

User Posted Image


Thanks for reading! :)

Populating Mars Part 1

Populating Mars Part 1

Feature

This week I’ve worked on something I was looking forward to for quite some time: NPCs. So far they all looked very alike and only stood around, two...

The Music of Life on Mars

The Music of Life on Mars

Feature

This article goes through the music for Life on Mars, how it's made and why it's made that way.

The Evolution of the graphical Style

The Evolution of the graphical Style

Feature

I will go through the different stages of the development of the graphical style for Life on Mars, explaining what worked and what didn't.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Life on Mars
Platforms
Windows
Developer & Publisher
Rebusmind
Contact
Send Message
Release date
Game watch
Follow
Share
Style
Genre
Adventure
Theme
Sci-Fi
Players
Single Player
Project
Indie
Twitter

Latest tweets from @rebusmind

RT @konjak: #Iconoclasts is launching tomorrow on Steam and PS4/Vita, for these prices: €19.99 £17.49 $19.99 Sorry if that wa… T.co

13hours ago

RT @ktwfc: ゼルダの伝説 T.co

15hours ago

RT @RuediFiedler: Mit dem ersten Bild wurde ein Post eingeleitet, der behaupten wollte, wie unhöflich wir deutschen seien. Allerdings… T.co

Jan 21 2018

RT @SeithCG: External testing has now officially started on the final version of #GhostOfATale! If you've signed on then please… T.co

Jan 21 2018

RT @subparfiddle: Working on slopes and momentum. I've got a feeling that I'm doing this the completely wrong way, but it kinda work… T.co

Jan 20 2018

Tags

Life on Mars has not been tagged yet.

Embed Buttons
Link to Life on Mars by selecting a button and using the embed code provided more...
Life on Mars
Statistics
Visits
491 (7 today)
Last Update
Watchers
4 members
Articles
4
You may also like
NaissanceE
NaissanceE Adventure
>observer_
>observer_ Adventure
Minotaur
Minotaur Adventure
Echo Lake
Echo Lake Adventure
PLANETOIDZ
PLANETOIDZ Adventure