[Solved] Screen Boundary – (objects to not exceed boundary)

Hi
*Apologies if this post contains a question which has been asked on the forum elsewhere.

I need to find a simple fix so a group of draggable objects do not go outside the screen boundary.

1 Like

Hello, you could set GUI objects around the screen to serve as the boundary and use the β€œRaycast” condition to the draggable object.

2 Likes

Thanks, Gem this worked.

*A simular method has also been demonstrated in this online tutorial: GDevelop How To Keep Player On The Screen by Programeto

2 Likes

You are welcome. Just to inform you i make gdevelop 5 tutorials on my youtube channel. You can place a tutorial request there thanks.

2 Likes