Closed acs closed 2 years ago
The same could be done for the mobs.
Cool, just with 0.5h it is working. We just need to add the create the new animation and adding it to the game logic is pretty easy:
func die():
emit_signal("hit")
# Reproduce the killed animation
$AnimationPlayer.play("killed")
yield($AnimationPlayer, "animation_finished")
queue_free()
To convert the webm screencast generated by GNOME I have used:
ffmpeg -y -i ~/Videos/Screencasts/Screencast\ from\ 14-05-22\ 12\:03\:10.webm -vf palettegen /tmp/palette.png
ffmpeg -y -i ~/Videos/Screencasts/Screencast\ from\ 14-05-22\ 12\:03\:10.webm -i /tmp/palette.png -filter_complex paletteuse -r 10 animation.gif
The goal is to have 2 animations (related to #34):