Custom entity's sprite collision test - won't register some sprites
NOTE: see comments below, as I keep finding new information about this issue. I'm not sure if the entity type is the only thing at play here- I have some destructibles that react to sprite tests and others that don't, and the only thing that's changed is there sprite.
If you add a sprite collision test to a custom entity, it only detects certain entity types.
It will not detect:
- Destinations
- NPCs
- Blocks
- Crystal Block
- Shop Treasure
- Stream
Will Detect:
- Teletransporters
- Pickable
- Destructible
- Chests
- Switches
- Crystal Switch
- Custom Entity
- Door
To reproduce, have a custom entity model, add this collision test
entity:add_collision_test("sprite", function(entity, other_entity, fire_sprite, other_entity_sprite)
print(other_entity:get_type())
end
Edited by Max Mraz