Multiple object selection

Please tell me how you can select several objects on the scene with the mouse, outlining the selection area?

You can make an object variable boolean where whenever you are clicking that object make the boolean true and for outlining the selection area you can make a separate animation for it

Create a new 1x1 sprite object, When when mouse button is first pressed, store the mouse’s position and place the new sprite object there. Then, while the mouse is down. rescale the 1x1 sprite scale to the difference between the stored mouse position, and current mouser position.


When mouse button is released, select all the objects that Collide with the 1x1 sprite object

1 Like

Great solution! I will try!:+1:

if you want an empty selection box you can use a panel sprite instead that’s 3x3 with the center pixel empty and the borders all equal to 1.