30 lines
474 B
GDScript
30 lines
474 B
GDScript
extends AnimationPlayer
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
stop(true)
|
|
|
|
|
|
func _on_a_prey_digested():
|
|
if not current_animation_position > 1:
|
|
play("shitmove")
|
|
$Timer.start($Timer.time_left+0.4)
|
|
else:
|
|
stop(false)
|
|
_update()
|
|
|
|
|
|
func _on_Timer_timeout():
|
|
stop(false)
|
|
_update()
|
|
|
|
|
|
func _empty_poo():
|
|
seek(0,true)
|
|
_update()
|
|
|
|
|
|
func _update():
|
|
get_parent().get_parent().poo_in_rectum = clamp(current_animation_position,0,1)
|