Solarus Forum

Solarus => Development => Topic started by: Porksteak on June 13, 2018, 05:24:12 pm

Title: How to make hero hurt while swimming
Post by: Porksteak on June 13, 2018, 05:24:12 pm
I'm trying to make it so the hero can get hurt while swimming, but whenever he is hurt he goes back to his not swimming animation. I tried making it so that when the state is changed to hurt and his animation was swimming he would instead use a swimming hurt animation but this didn't work.
Title: Re: How to make hero hurt while swimming
Post by: Diarandor on June 13, 2018, 08:52:17 pm
This seems to me an engine limitation, or even a bug.
@Christopho: should we open an issue for this?

It is still doable in Lua with some event (on_animation_changed or on_state_changed).