solarus-games / solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/solarus
http://www.solarus-games.org
Other
710 stars 133 forks source link

Jumpers missing info #1157

Open Diarandor opened 6 years ago

Diarandor commented 6 years ago

When the hero jumps with a jumper, it should be possible to get the height somehow, to notify custom weapon sprites and draw them with correct height. There are two possible solutions: 1) Update shift for hero sprite, that is recovered with hero:get_sprite():get_xy() 2) Update hero position, that is recovered with hero:get_position()

Some events "on_started" and "on_finished" for jumpers could be useful too.