0
Answered

Unlocking Cursor When in Dialogue

Zhav 🇰🇳 1 year ago in Game Creator updated by Marti (Lead Developer) 1 year ago 1

Hey, I was wondering if there's a way to unlock the cursor when in a Dialogue by default, or if I can be pointed in the direction to programmatically create this.

Unity version:
Game Creator version:

Answer

Answer
Answered

Sure! The same way you use the Cursor Action to lock the cursor on screen, you can use it to unlock it from the center.

If your concern is having to do this (among other things) before executing any Dialogue, you can do a technique called tunneling. This consists of creating an Actions object with everything you want to do before executing any Dialogue. Then, create a prefab object out of this Action.

Now, before executing a Dialogue, you can use the Call Action action and reference that prefab. This allows you to later modify the prefab's action list and propagate the effect to all Dialogues.

Hope this makes sense :-) Cheers!

GOOD, I'M SATISFIED

Wow! I've gotta say... That's pretty intuitive. It's one of those things where, once you see the solution you're just like "Wow, that makes so much sense"

Satisfaction mark by Zhav 🇰🇳 1 year ago
Answer
Answered

Sure! The same way you use the Cursor Action to lock the cursor on screen, you can use it to unlock it from the center.

If your concern is having to do this (among other things) before executing any Dialogue, you can do a technique called tunneling. This consists of creating an Actions object with everything you want to do before executing any Dialogue. Then, create a prefab object out of this Action.

Now, before executing a Dialogue, you can use the Call Action action and reference that prefab. This allows you to later modify the prefab's action list and propagate the effect to all Dialogues.

Hope this makes sense :-) Cheers!