summaryrefslogtreecommitdiff
path: root/game/microgames/heart_break/player_heart.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/microgames/heart_break/player_heart.gd')
-rw-r--r--game/microgames/heart_break/player_heart.gd8
1 files changed, 5 insertions, 3 deletions
diff --git a/game/microgames/heart_break/player_heart.gd b/game/microgames/heart_break/player_heart.gd
index 565cee1..0a6b26a 100644
--- a/game/microgames/heart_break/player_heart.gd
+++ b/game/microgames/heart_break/player_heart.gd
@@ -1,6 +1,7 @@
extends RigidBody2D
var speed = 250
+var playerControl = true
# Called when the node enters the scene tree for the first time.
func _ready():
@@ -9,7 +10,8 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
- var moveVector = Vector2(Input.get_axis("Left","Right")*speed, Input.get_axis("Up","Down")*speed)
- apply_force(moveVector)
- #set_axis_velocity(moveVector)
+ if(playerControl):
+ var moveVector = Vector2(Input.get_axis("Left","Right")*speed, Input.get_axis("Up","Down")*speed)
+ apply_force(moveVector)
+ #set_axis_velocity(moveVector)
pass