Button won't emit signal

Godot Version

4.2.2

Question

Hello, I’m trying to make a Simon game using
CenterContainer > GridContainer> AspectRatioContainer > Button > ColorRect

extends Control


# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	pass


func _on_button_pressed():
	print("PRESSED")

As you can see in my setup I made sure to connect the signal inside of the script, when I run the game and try clicking on any of those 4 colors it won’t print anything


I also noticed that I’m not allowed to upload a .zip file here. I’m trying to provide the project for inspection. Please let me the proper method of distributing the game project

1 Like

Some other Control node is consuming the events. Try clicking on it while the game is running and check the Misc tab in the Debugger dock. Check if Last Clicked Control field shows anything. If it does, set that control Control.mouse_filter to Ignore and repeat.

2 Likes

THANK YOU!

turns out the ColorRect was consuming the mouse input