Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get which side of an object a player clicked?

Asked by 5 years ago

I am making a game involving building but I am having trouble with the building system, I want it too be smooth and feel comfortable but also to be multilayered (meaning you can place objects on top of eachother).

I have had many different ideas of how to do this but most of them failed. I am trying to replicate a building system seen in Build & Survive that works of object sides. Does anyone know how to get what side of object has been clicked or hovered on?

A gif captured in Build & Survive explaining what I mean:!Gif about object sides

If this is not the most effective or correct way of replicating this system can someone please explain me another way?

0
your best bet in the way you want to do it, is to make it out of its net shapes then put a click detector on each side of the box. The only problem i see, is lag from the click detectors constantly listening for clicks, or hover events. Fad99 286 — 5y

Answer this question