Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- onready var anim: = $AnimationPlayer
- const slow: = 1.0
- const fast: = 2.0
- func _input(event:InputEvent)->void:
- if event is InputEventMouseButton:
- if event.button_index == 1:
- if event.pressed:
- anim.playback_speed = fast
- else:
- anim.playback_speed = slow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement