I’m getting:
ERROR:SCRIPT: backgrounds/battlefield/segment_factory.script:17: bad argument #2 to 'get_window_width' (RenderScriptInstance expected, got userdata)
stack traceback:
[C]: in function 'get_window_width'
backgrounds/battlefield/segment_factory.script:17: in function <backgrounds/battlefield/segment_factory.script:16>
In:
function update(self, dt)
local window_width = render.get_window_width()
end
On:
OS X El Capitan 10.11.2
Running Defold:
Version 1.2.72
(181f1cd0d18716abc26524eb83444ec3b1c3455e)
Java 1.8.0_05
EDIT: Changed from Bug to Question to minimize confusion.