Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a 2D game?

Wanting to try to get the basics of a maplestory-type game.

How would I make it so you can only play with your camera a certain angle?

2 answers

Check out this function for cameras. The functions you could use are called :

WorldToScreenPoint() : Which takes a 3D world point and returns information regarding its 2D screen location, its depth, and whether it is visible on the screen or not.

And then ScreenPointToRay(): This casts a Ray from a defined 2D point on the screen through the camera.

This discussion is preserved as it was. New answers, comments, and votes are closed.