Skip to content

Commit 973c526

Browse files
committed
hud: Make touch screen buttons semitransparent
Previously, an enemy could creep up on you by being underneath one of the buttons. This was more of a problem in multiplayer games, where the camera zooms out only as far as necessary to fit both players on the screen. Of course, there aren't touch controls for the second player, but the learner could always add them. Set the buttons to 75% opacity.
1 parent 802a499 commit 973c526

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hud.tscn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ expand_mode = 1
106106
stretch_mode = 1
107107

108108
[node name="MovePlayerLeft" type="TouchScreenButton" parent="."]
109+
modulate = Color(1, 1, 1, 0.74902)
109110
texture_filter = 1
110111
position = Vector2(80, 845)
111112
scale = Vector2(2.3, 2.3)
@@ -116,6 +117,7 @@ action = "player_1_left"
116117
visibility_mode = 1
117118

118119
[node name="MovePlayerRight" type="TouchScreenButton" parent="."]
120+
modulate = Color(1, 1, 1, 0.74902)
119121
texture_filter = 1
120122
position = Vector2(400, 845)
121123
scale = Vector2(2.3, 2.3)
@@ -126,6 +128,7 @@ action = "player_1_right"
126128
visibility_mode = 1
127129

128130
[node name="Jump" type="TouchScreenButton" parent="."]
131+
modulate = Color(1, 1, 1, 0.74902)
129132
texture_filter = 1
130133
position = Vector2(1695, 845)
131134
scale = Vector2(2.3, 2.3)

0 commit comments

Comments
 (0)