how do make the camera be like in a 2d mario type style?
You can archive this pretty easily. Try following this tutorial made by @GnomeCode:
Hope that helped,
ok but i want just the camera angle only
I can’t understand what you mean by “the camera angle only”. If you watch till the end of the video, you will see that the camera is moving with the player. Isn’t this what you wanted?
yes only the camera just moving with the player
I can’t really understand what you need. You said that you want a 2D game, like Mario, am I right? This 2D game has a 2D camera which follows the player. Can you explain with a bit more detail?
ok so i need just the camera to be in the 2d way not the full game like 2d mario i just need the camera to follow the player and be in the 2d type way
You want it so you cant move the camera up, down, left and right?
yes and it follows the player just like that ok
ok so hey do you know to make the camera not move and it follows the player
Yes, I just need some time to make it.
Ok take your time Theyoloman1920
Here is what you need to do:
- Make a part in Workspace
- Name it CameraPart, set it’s Transparency to 1, set CanCollide to false and Anchored to false too
- Insert a local script under StarterPlayer:StarterCharacterScritps
- Delete the “print(“Hello World”)” and paste this into the script:
--Script Made By Theyoloman1920, 9 July 2020 --Services local RunService = game:GetService("RunService") --Variables local CameraPart = workspace.CameraPart local plr = game.Players.LocalPlayer local char = plr.Character local camera = workspace.CurrentCamera local Root = char.HumanoidRootPart --Functions RunService.Heartbeat:Connect(function() CameraPart.Position = Root.position + Vector3.new(0, 2, 6) camera.CameraType = Enum.CameraType.Scriptable camera.CFrame = CameraPart.CFrame end)
Tell me if it worked.
Also, I think that you must change the category of your post to #help-and-feedback:scripting-support
Thanks alot but i have a qeustion what is the part? (script or what)
Oh, a part is a “brick” kind of thing. It’s just a small/large piece in your game. Let me film it for you.
Ok thanks for all the help and the video.
Here is the video I filmed:
I filmed it 3 times and it took some time to upload, sorry for the delay…
Also sorry for the bad definition, the high one is processing…
Note that if the camera’s position isn’t right you can always change it in the script, where it says:
CameraPart.Position = Root.Position + Vector3.new(0, 2, 6)
You can edit the numbers in order to edit the position.