Blackscreen when using camera custom render script

Expectation: camera follow player.

I have a custom render script works works fine on simple_lights public examples. and I put this code into init() of game object player

camera.deadzone(CAMERA_ID, 320/2, 320/2, 568/2, 568/2) msg.post(CAMERA_ID, "follow", { target = "/player"})

whole screen turn black.

This sounds like you’re using the Orthographic camera extension and one of my examples. The thing is that the simple_lights example uses custom render script and so does Orthographic. You need to combine the two for it to work.

1 Like