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/LsZqleD
But 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.
  • Your setup starts the event whenever the used input key receives input.

    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.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.