Solarus-Games English 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.