How to click the screen to trigger an event?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Syl

Not just a buton but the whole background. Thxs if you can help.

:bust_in_silhouette: Reply From: GunPoint
func _ready():
   set_process_input(true)
func _input(event):
    if event is InputEventMouseButton and event.pressed and event.button_index == 1:
         <your events>

Cheers! Sry for delay.

Syl | 2018-03-29 19:18