Hello everyone, I’m a beginner at Defold and know very little. I am creating an rpg and I have a problem - I made a level using tilemap collision, then created a proxy and going to the next level. But the collision with the ground and the stairs remained from the previous level, and on the new level, the collision with the new map did not load. Already looked everywhere about this topic, but nothing helped.
Here is the proxy code:
function on_message(self, message_id, message, sender)
if message_id == hash("show_level2") then
msg.post("#level2proxy", "load")
msg.post("#level1proxy", "unload")
elseif message_id == hash("proxy_loaded") then
print("proxy_loaded", sender)
msg.post(sender, "enable")
print(sender)
elseif message_id == hash("proxy_unloaded") then
print("proxy_unloaded", sender)
end
end
Thanks in advance