Are there alternatives to Monarch screen manager?

Is there alternatives for monarch? without using collection proxies.

What are you trying to do/what problems are you having?

You can make a simple screen manager just by disabling / enabling different GUIs if you don’t want one to manage loading/unloading.

1 Like
  1. Tried to access script property from gui, i can’t, differrent context.
  2. Tried to put script property to lua-module (shared state), worked, but i can’t access go functions from lua-module(to create and delete) because you can’t call function from different collection proxie.

All because i need to know game objects positions from gui. So i might have.

  1. Write own screen manager using factories.
  2. Toss messages in out.
  3. Store and update positions in lua-module, but keep objects in script.

There is one alternative to Monarch in the Asset Portal - whDefRouter:

There’s also new GUI framework with navigation with transitions:

2 Likes

I think this problem wont be resolved by any screen manager… it is how defold works.

I found your third options to store state in a lua module but keep objects where they live is the best and less buggy solution.
I do that for a minimap/radar module:
Have a simple lua module where objects can register/unregister themselves.
Then i have a controlle that just loop and record each objects informations in late_update().
Then gui can just get the information and use it.

In fact I use defold-event with event for object creation and deletion, they trigger event with their Id and some type data, then my map controller just listen to these events to register interristing objects.
But I can add another controller that listen to it for whatever it needs.
So I need to touch my objects only once to make them trigger these events, but then everything is decoupled.

Because you probably dont need to have position of ALL gameobject for your GUI, right?

4 Likes

How come I’ve never heard of flow here on the forums? It seems very interesting

1 Like

Because it’s relatively new, I only checked it on the surface, but looks very interesting! :smiley:

Yes definitely! I’m just surprised whoever wrote this hasn’t flexed here on the forums

1 Like