Hello, I’m having an issue where my code isn’t able to find a URL which i have made sure should exist a few times
ERROR:GAMEOBJECT: Instance '/collectable_spawner' could not be found when dispatching message 'delete' sent from game:/player#player
msg.post("/collectable_spawner#collectables", "delete")
The player script should be sending a message to the collectable script and I can’t figure out why it can’t find it. Any help will be appreciated
The URL for the collectable script copied and pasted should be as below
/collectable_spawner#collectables
There’s a socket part, you should check if you are using collection proxies
Addressing in Defold
I just tried this and it didnt seem to fix the issue, still gives the same error message. They are both in the same collection though
Silly question: Is “collectable_spawner” still alive?
1 Like
That was in fact not a silly question and was in fact the answer, thanks. I never thought that it would delete itself.
1 Like
britzl
November 23, 2024, 4:32pm
6
It will not do it by itself. Only if you call go.delete() on it. You must be doing that somewhere in your code?
I figured that out just now, i know i had it like that before i was messing around trying to figure out how to delete the individual collectables and was able to fix everything related to the issue i think.