Hello.
Please help me with collection proxies.
My main scene is:
Game script is:
function init(self)
-- Show title screen
local proxy = msg.url("#cp_title")
msg.post(proxy, "load")
msg.post(proxy, "init")
msg.post(proxy, "enable")
end
In my title collection I created an object with big sprite and the following script attached:
function init(self)
local x = 45
end
function fixed_update(self, dt)
local x = 45
end
function update(self, dt)
local x = 45
end
I placed breakpoint on each βx=45β line, but for some reason only first one (from init function) fires, and the screen is completely black with no big sprite attached to object that should be visible. Am I missing something?
Defold version is
Thanks.