Add touch screen support for 3d/platformer (#1128)

Update touch_screen_ui.gd
This commit is contained in:
Shahriar Labib
2025-10-02 23:47:00 +06:00
committed by GitHub
parent af2b9b1f30
commit 84ac7b40a6
52 changed files with 2189 additions and 286 deletions

View File

@@ -71,7 +71,6 @@ func _physics_process(delta: float) -> void:
movement_direction = movement_direction.normalized()
var jump_attempt := Input.is_action_pressed(&"jump")
var shoot_attempt := Input.is_action_pressed(&"shoot")
if is_on_floor():
var sharp_turn := horizontal_speed > 0.1 and \
@@ -154,7 +153,7 @@ func _physics_process(delta: float) -> void:
shoot_blend *= 0.97
if (shoot_blend < 0):
shoot_blend = 0
var shoot_attempt := Input.is_action_pressed(&"shoot")
if shoot_attempt and not prev_shoot:
shoot_blend = SHOOT_TIME
var bullet := preload("res://player/bullet/bullet.tscn").instantiate() as Bullet