pegchamp/Flipper/Flipper.gd
2021-09-28 17:55:03 +02:00

8 lines
172 B
GDScript

extends KinematicBody2D
func _physics_process(delta):
if Input.is_action_pressed("shoot"):
rotation = lerp(rotation, -90, 0.9)
else: rotation = 0
func bouncy():
pass