Hey! I have a dynamic collisionobject that collides with a static object. I can’t catch the collision message.
This code just does nothing:
function on_message(self, message_id, message, sender)
if message_id == hash("collision_response") then
go.delete(id)
sound.stop("#bombwhistle")
check = 0
print("collision")
end
end
Yes, I just can’t get a collision response. I set the group and mask, as well. I am trying to make it as simpla, as possible, but I can’t make this code work:
function on_message(self, message_id, message, sender)
if message_id == hash("collision_response") then
print("Collision")
end
end
Are they in they both instanced under the same collection? I’ve experienced something like this a while ago, and I found that if you spawn the two using factories in the same collection, it solves the problem.