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

How to make a 2D game? [closed]

Asked by 8 years ago

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?

Closed as Not Constructive by EzraNehemiah_TF2 and YellowoTide

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 8 years ago

This is not a request site, please study the following sites: Study This one first, http://wiki.roblox.com/index.php?title=Camera, http://wiki.roblox.com/index.php?title=API:Class/Camera/CoordinateFrame, http://wiki.roblox.com/index.php?title=API:Class/Camera/Interpolate, http://wiki.roblox.com/index.php?title=API:Class/Camera/CameraType. There are also some 2D game free models.


We do not make scripts for you.


Hope it helps!

Ad
Log in to vote
0
Answered by 8 years ago

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.