Solarus Forum

Community => General discussion => Topic started by: Senjosei on June 09, 2015, 06:32:32 pm

Title: Diagonal Sprites?
Post by: Senjosei on June 09, 2015, 06:32:32 pm
Hi im new and still tinkering with solarus, so is there a built in "walking_diagonal" animation ?
Also is there a list of all the built it animations in every sprites? it helps a newbie  ;D
Thnx~
Title: Re: Diagonal Sprites?
Post by: Christopho on June 09, 2015, 06:55:08 pm
Hi,
The tunic sprite of the hero must indeed have animations with specific names, including "walking_diagonal". This list might be missing in the doc (oops) but it corresponds to the ones of Zelda Mystery of Solarus DX. You can edit Zelda Mystery of Solarus DX and look at the sprite "hero/tunic1".
Title: Re: Diagonal Sprites?
Post by: Senjosei on June 10, 2015, 10:52:02 am
umm im assuming the walking_diagonal is used when im moving diagonalny like pressing up and right but its not working or am i doing something wrong... :-\
Title: Re: Diagonal Sprites?
Post by: Christopho on June 10, 2015, 10:54:43 am
Actually no, "walking_diagonal" is only used when taking spiral stairs to mimic the animation of A Link to the Past.
Title: Re: Diagonal Sprites?
Post by: Senjosei on June 10, 2015, 01:43:57 pm
oh... i see. is it possible to do what i was trying to do with scripts?
Title: Re: Diagonal Sprites?
Post by: Christopho on June 10, 2015, 02:25:00 pm
Maybe... you can try to do an event hero:on_movement_changed() that changes the animation depending on the movement's angle, when the animation is "walking". But it seems risky.