Hello,
i’m new to defold (and lua) and i am creating a mobile app.
I need the screen size in my main controller. Therefore i set up a custom render script and inserted
msg.post("/main#controller", "screen", {height = render.get_height(), width = render.get_width()})
at the end of the init function.
However the on_message function of my main.script is never called.
my main.collection contains a game objection with the id “controller” which contains the main.script.
What am i doing wrong?