Enhanced snail animations and interactions
Added new animation states for the snail entity, including 'Move' and 'Sleep'. The snail now hides certain elements when eating and plays appropriate animations when transitioning between states. Also introduced a new texture for sleep indication.
This commit is contained in:
parent
5777a7f2f1
commit
b8f42a552e
6 changed files with 268 additions and 9 deletions
|
|
@ -13,6 +13,10 @@ var original_snail_scale : float = 0.1
|
|||
func enter(_msg : Dictionary = {}) -> void:
|
||||
Log.pr("I am a snail and I will eat!")
|
||||
snail.eating = true
|
||||
if snail.animation:
|
||||
snail.animation.play("Move")
|
||||
|
||||
snail.hide_zeds()
|
||||
|
||||
func exit() -> void:
|
||||
snail.eating = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue