Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma-Fuller committed Aug 21, 2023
1 parent 254ee90 commit b778f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scenes/Player/Player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func _unhandled_input(event):
if not event.pressed:
touch_vec = null
else:
var is_left = event.position < get_viewport_rect().size.x / 2
var is_left = event.position.x < get_viewport_rect().size.x / 2
touch_vec = Vector2(
-1 if is_left else 1,
0
Expand Down

0 comments on commit b778f20

Please sign in to comment.