if i’m in the screen A and i go to screen B everything works.
when i transition from my game (screen B) to screen A using:
monarch.show(hash(“A”), {clear = true })
i get this
`ERROR:SCRIPT: orthographic/camera.lua:695: attempt to index local ‘camera’ (a nil value)
stack traceback:
orthographic/camera.lua:695: in function send_view_projection
orthographic/camera.script:75: in function <orthographic/camera.script:71>
ERROR:SCRIPT: orthographic/camera.lua:296: attempt to index a nil value
stack traceback:
orthographic/camera.lua:296: in function final
orthographic/camera.script:60: in function <orthographic/camera.script:59>`
Since that moment when i go back from screen A to B, the camera works randomly, sometimes it does, sometimes it doesnt.
Am i missing something on how i should handle the camera in a collection that is managed by monarch and uses collection factory?
thanks for reply! this is my issue but after test many time I change orthography camera go’s name in next level collection and it is work finally..
so Is it turns out the issue was a singleton conflict caused by having identical camera IDs across different level collections?
anyway thanks!