0
Answered

Stop game during dialogue

SAmiRS 3 months ago in Dialogue updated by Phazorknight 3 months ago 2
Hello! I have an issue with dialogue.

In my game, when Player enters dialogue, black screen appears over whole screen and only image (actor) of NPC on the left, and dialogue-options on the right.

First problem is, my game doesn't freeze when I enter dialogue, and my character can move freely.

IIf i use scale time action set to 0, the whole game freezes as well as dialogue. (When I built my own UI based dialogue in Unity before purchasing GameCreator, when game froze, UI ran just fine since it appears that UI is not Real Time like Dialogue mode in GameCreator).

Second problem is, that while going through dialogue, it appears that each time dialogue progresses, black UI screen reloads and result is that it flickers (back image is visible for split second).


My goal is to stop the game when entering dialogue "mode" do dialogue, and then unfreeze game on end of dialogue, without any environmental interference while in dialogue mode. In other words, Real Time game to stop, and dialogue to continue out of real time.

I believe this type of dialogue is not uncommon, and there are solutions.

Please be kind to help.

Best regards!

Unity version:
Unity 2018.4.14f1 (64-bit)
Game Creator version:
1.1.9
BAD, I'M UNSATISFIED
Satisfaction mark by SAmiRS 2 months ago
Answered

The term "stop game" is quite relative. You can take control of the player's movement so it doesn't move around when a Dialogue is being played by using the "Character Property" action and setting the "is controllable" option to false when the dialogue starts.

To return back the control to the player, use the same action but setting the value to True

I think what Marti mentioned is what you're looking for, I had the same issue.

Regarding your UI flicker problem: "Second problem is, that while going through dialogue, it appears that each time dialogue progresses, black UI screen reloads and result is that it flickers (back image is visible for split second)."

Check how your dialogue is triggered, if your game doesn't stop, you may be retriggering the dialogue or actions surrounding it, while the dialogue is already active (depends on your game, maybe if you click the character again, since they are still clickable behind your UI), it's possible that deactivation the player>isControllable will fix that as well.