Wrong collision detection between custom entities and switch/crystal
Created by: christopho
Here is a sample of code for a custom entity (the arrow) :
self:add_collision_test("sprite",function(me,collision_entity)
print(collision_entity:get_type());
end)
self:add_collision_test("touching",function(me,collision_entity)
print(collision_entity:get_type());
end)
self:add_collision_test("overlapping", function(me, collision_entity)
print(collision_entity:get_type());
end)
If the collision_entity is a solid switch (type "arrow solid" or "solid") or a crystal, only the sprite collision works.