Gui and render with drag and scroll camera - guianimate

Hello, is there a possibility make two gui one inside camera and one outside and to show the second by drag and scroll the camera to that place? Or the gui must all the time for render be inside the bounds of camera?

For example in editor of defold shows the gui but when it build and runs show only the one inside camera
the second when camera goes where was it is blanc.

Thanks

Nodes inside the GUI can be placed outside the bounds of the screen area. There is no “camera” as such for a GUI, but you can put all nodes inside a root node and move that.

I have put the nodes inside layer but the one gui in bounds of camera of game seems and the one which is at the rest of map no? so what I do wrong? thanks

render is 800 x 600 and game map is 3000 x 2100
that’s why I use drag and scroll at camera. thanks

I use a node root but still the gui did not show up, when I put button of it inside where is camera when you draw the gui it show, but other button that is at game rest map, does not show. thanks

Not sure I understand the problem. Wouldn’t it be better to use game objects instead of GUI for a scrollable map? Then you could use existing camera extensions, like Orthographic and Rendercam.

just I wanted buttons to be on map, and has the use of gui on touch and send message… with game object should be a button with a sprite and input focus… the gui I have is 78 buttons with one input focus in gui script. thanks

maybe with gameobject is I will try just need put again from start 78 sprites and 78 positions as I think only copy paste can do at pos one by one but create from box a spite I think I cannot do

can please someone tell me if I can use in someway the gui.animate to solve this?
thanks

The standard behavior of a gui is that it always render in screen space which makes it hard to integrate with game objects. I would create the buttons using game objects instead and perhaps use defold-input and the cursor module. You can also take a look at this example where gui components follow game objects: publicexamples/examples/gui_follows_go at master · britzl/publicexamples · GitHub (note that you will NOT be able to use gui.pick_node())

thanks I will check this example