I get this error:
Instance '/Enemies' could not be found when dispatching message
From this piece of code:
function on_message(self, message_id, message, sender)
if message_id == hash("collision_response") then
local collided_object_id = message.other_id
if message.group == hash("pizza") then
print("Collision with pizza")
go.delete(collided_object_id)
elseif message.other_group == hash("enemy") then
print("Collision with enemy")
msg.post("/Enemies#countdown", "enemy_dead")
go.delete()
go.delete(collided_object_id)
end
end
end
This is my file setup:
I have tried debugging using printing and researching, i have tried removing the slashes and hashtags, using only hashtags, only slashes, and it still doesn’t work.
Any help?