Click two objects and then create another

Hello guys. I’m trying to make a game with colors. For example: I have 2 squares on the screen, one is blue and another one is yellow and when you click both squares another one is created, it is possible?

It seems possible, yes.

You have any idea how to do it?

Well, if click is released and cursor is on blue, add 1 to variable okay, if click is on yellow, add 1 to variable okay, then if okay = 2, delete blue, delete yellow, and create object.
Something like this :wink: