![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | malkav182 |
My scene has a button
connected with a pressed()
signal:
func _on_new_game_pressed():
emit_signal("new_game")
The game has only this action, that is the mouse click (actually touchscreen because it is a mobile game). The new_game does not change the scene, it just clears the screen and reset the points.
The issue I’m facing is that when new_game
runs, it starts firing up the shoot action.
func get_input():
var m_input = Input.is_action_just_pressed("ui_shoot)
if m_input:
shoot()
func _physics_process(delta):
get_input()
How can I prevent this from happening?