I tried to reproduce this locally without success.
This is my setup;
-
bootstrap collection
-
proxy collection
- main.script
function init(self)
msg.post(".", "acquire_input_focus")
msg.post("#collectionproxy", "load")
end
function on_message(self, message_id, message, sender)
if message_id == hash("proxy_loaded") then
msg.post(sender, "enable")
end
end
function on_input(self, action_id, action)
if action_id == hash("touch") and action.released then
msg.post("proxy:/go#proxy", "do_something")
msg.post("main:/main#collectionproxy", "disable")
end
end
function on_message(self, message_id, message, sender)
pprint(message_id)
end
And this is the output I’m getting when I click (bound to hash("touch")
):
INFO:DLIB: Log server started on port 57805
INFO:ENGINE: Engine service started on port 57806
INFO:ENGINE: Defold Engine 1.2.123 (46d8b7e)
INFO:ENGINE: Loading data from: build/default
INFO:ENGINE: Initialised sound device 'default'
...
DEBUG:SCRIPT: hash: [do_something]
Does this roughly correspond to your setup? Am I missing something?