solarus-games / solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/solarus
http://www.solarus-games.org
Other
710 stars 134 forks source link

More customization for "entity:overlaps(other_entity, "sprite")" #1159

Open Diarandor opened 6 years ago

Diarandor commented 6 years ago

It would be nice and very useful to give more parameters to "entity:overlaps(other_entity, "sprite")" to choose the sprites considered for the collision. Something like: entity:overlaps(other_entity, "sprite" [, entity_sprite, other_entity_sprite])

Diarandor commented 6 years ago

@christopho Could this be done for Solarus v1.6? This would be very useful to detect collisions with the shield (and other different collisions) if they depend on the sprite of the enemy.