9/20/2023 0 Comments How to make a game in robloxGame:GetService("SoundService").Gravity:Play() Ĭharactercontroller:UpdateDirection() - set characters rect size incase it hasnt updated yet :GetMouse().Button1Down:Connect(function() - invert gravity on clickĬharactercontroller.JumpPower = (d and -20 or 20) UIF.MoveCameraByPosition(script.Parent,Vector2.new(,0),15) Game:GetService("RunService").RenderStepped:connect(function() - main loop Local charactercontroller = characterrigid:AddController() - optional if you dont want to make a custom character controllerĬharacteranimations.walk = UIF.NewInstance("SpriteSheet",character) - create new spritesheet for walkingĬharacteranimations.walk:Add(6332856820,6332856726,6332856639,6332856532) - ImageIdsĬharactercontroller:SetAnimation(,characteranimations.walk) Ĭharactercontroller:SetSound(,5024697269) - SoundIdįor i,v in pairs(passive:GetChildren()) do - loop through passive objects and add colliderįor i,v in pairs(active:GetChildren()) do - loop through active objects and add collider and rigidbody Local characterrigid = UIF.NewInstance("Rigidbody",character) - add rigidbody to character Local charactercollider = UIF.NewInstance("BoxCollider",character) - add boxcollider to character UIF.DisableCore() - optional if u want to disable core GUIs UIF.UnbindWalk() - optional if u want to disable ur actual character in workspace walking devforum-uploads.s3./uploads/original/4X/1/5b2848cba00495b5da8abf464078e0c1a5c3.mp4Ĭode for the above game for those who are interested local character = Most of the Classes come with alot of different Customizable Settings which I wont go in depth about yet because it isnt released yet. I plan on making a Plugin for it which adds a moveable Camera outside of Run Mode, kind of like the actual Studio Camera but in 2D, together with some tools that help you place Frames etc. It is fairly easy to use assuming you have some scripting knowledge and know how to use modules. The only real way of making a proper 2D Game in Roblox at this time is to use GUIs, which are limited to 2 Dimensions. While this is a good and efficient approach, the 3rd Dimension still exists and can still be seen. The current 2D Games are all based around the Idea of having a 3D Space look 2D by essentially getting rid of anything on the Z axis. This is a Framework in Progress to make fully 2D, GUIObject based Games on Roblox easy.īut aren’t there 2D Games on Roblox already? Yes and no.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |