Skip to content

Commit

Permalink
button adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
jbourqueendless committed Dec 3, 2024
1 parent 33acd11 commit 7dd60ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ player_1_right={
]
}

[input_devices]

pointing/emulate_touch_from_mouse=true

[layer_names]

2d_physics/layer_1="Player"
Expand Down
15 changes: 9 additions & 6 deletions touch_screen_controls.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,27 @@ grow_horizontal = 2
grow_vertical = 2

[node name="MovePlayerLeft" type="TouchScreenButton" parent="."]
position = Vector2(79.4, 844.84)
scale = Vector2(2, 1.964)
texture_filter = 1
position = Vector2(80, 845)
scale = Vector2(2.3, 2.3)
texture_normal = ExtResource("1_o68br")
passby_press = true
action = "player_1_left"
visibility_mode = 1

[node name="MovePlayerRight" type="TouchScreenButton" parent="."]
position = Vector2(342.16, 844.84)
scale = Vector2(2, 2)
texture_filter = 1
position = Vector2(400, 845)
scale = Vector2(2.3, 2.3)
texture_normal = ExtResource("2_d4mmb")
passby_press = true
action = "player_1_right"
visibility_mode = 1

[node name="Jump" type="TouchScreenButton" parent="."]
position = Vector2(1695, 837)
scale = Vector2(2, 2)
texture_filter = 1
position = Vector2(1695, 845)
scale = Vector2(2.3, 2.3)
texture_normal = ExtResource("3_mqvem")
passby_press = true
action = "player_1_jump"
Expand Down

0 comments on commit 7dd60ca

Please sign in to comment.