Author Topic: Diagonal Sprites?  (Read 4922 times)

0 Members and 1 Guest are viewing this topic.

Senjosei
  • Newbie
  • *
  • Posts: 3
    • View Profile
Diagonal Sprites?
« 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~

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Diagonal Sprites?
« Reply #1 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".

Senjosei
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Diagonal Sprites?
« Reply #2 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... :-\

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Diagonal Sprites?
« Reply #3 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.

Senjosei
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Diagonal Sprites?
« Reply #4 on: June 10, 2015, 01:43:57 PM »
oh... i see. is it possible to do what i was trying to do with scripts?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1193
    • View Profile
Re: Diagonal Sprites?
« Reply #5 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.