Hello.
I am making a 2d game.This game uses only mouse and click.
I want to proceed with the event by clicking the object surrounded by the red square.
https://imgur.com/a/LsZqleDBut when I click outside the red box the event starts
The position of the main player combatants is set here.
Please tell me how to do it.
To start events by clicking on them, just use the Interact start type (and have a collider on them to actually be able to receive the clicks).
Also, check the Click Interaction settings in Base/Control > Game Controls to manage how far away from the player they can be used (e.g. using -1 to not limit this) and which layers will be checked.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!