olzwheels.blogg.se

How to make a sonic game on roblox 2d engine
How to make a sonic game on roblox 2d engine













RunService:BindToRenderStep("Camera",, onUpdate) If player.Character and player.Character:FindFirstChild("HumanoidRootPart") thenĬamera.CFrame = CFrame.new() * CFrame.new(0,0,30) camera.CameraSubject = Ĭamera.CameraType = Īfter that, we need to call the Run Service with this command local RunService = game:GetService("RunService")įinally, the function that actually makes it follow the player… local function onUpdate()

how to make a sonic game on roblox 2d engine

Then, lets get some of our camera basics such as what the FOV will be and who it will effect. Note: The higher the FOV the further the player will be from the screen Player.Character:WaitForChild("HumanoidRootPart") (I forgot what it does but I’m pretty sure it finds the player) player.CharacterAdded:Wait() Now that we did that, we need to add some other stuff after it. Lets start the script by call the player and Camera Variables. (MAKE SURE ITS IN THE RIGHT PLACE AND A LOCALSCRIPT) Now, You have a clear space to write your script. To start, create a local script in StarterPlayerScripts and open it. The default camera angle on Roblox can be changed by a player, however we want it to be still in a certain position following the player as they move about. This tutorial will cover Movement/Camera scripts and how to make your 2D game look good (Skip to the end for game kit!). Today I will show you how to make your own 2D game.

how to make a sonic game on roblox 2d engine how to make a sonic game on roblox 2d engine

A hill model has been added into the kit, nothing super big















How to make a sonic game on roblox 2d engine