Solarus-Games English Forum

Solarus => Bugs & Feature requests => Topic started by: Diarandor on September 13, 2014, 07:20:34 PM

Title: Problem after using hero:set_tunic_sprite_id()
Post by: Diarandor on September 13, 2014, 07:20:34 PM
Hi! I have the following problem:

After changing the hero's sprite with the function hero:set_tunic_sprite_id("tunic_name"), the hero is not hurt when colliding with an enemy. I realized that this only happens when the name of the tunic is not of the form "tunicX". Could this be a bug?

Thanks in advance for your help!
Title: Re: Problem after using hero:set_tunic_sprite_id()
Post by: Christopho on September 13, 2014, 08:06:12 PM
Hum, yes, it is a bug I was not aware of. I added it to the bug tracker: https://github.com/christopho/solarus/issues/617
As a workaround before the next bugfix release, you have to keep the word "tunic" in the id of the tunic sprite.
The same bug also exists with the sword. You have to keep the word "sword" in the id of the sword sprite.
Thanks for the report!