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

How would I start on making a 2D bike?

Asked by 3 years ago
Edited 3 years ago

Hey scripters, hope you are having a nice day! I am helping my friend with a project and it has come to the point where I need to make the bike functional but I don't exactly know how to start. I have no prior knowledge on making functional vehicles and I've tried looking at dev-forums but I couldn't find related problems. I have also tried dissecting free models, but the scripts seem too overwhelming and I want to try to understand how I might make a bike for myself. I am not asking for full scripts, just any articles or information that would help me get started. By the way by a 2D bike I mean a bike that would only be able to go left or right. Thank you!

0
How good are you at physics, specifically forces? radiant_Light203 1166 — 3y
0
I'm not too great, is it required for bike functionality? SprinkledFruit101 135 — 3y
0
So are you trying to make the bike function similarly to Hill Climb Racing? A_thruZ 29 — 3y
0
Yeah SprinkledFruit101 135 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

What I would suggest doing is starting out with these steps below.

  1. Make the bike sprite that is going to move around the player's screen on the gui.

  2. Next then you can make a local script that controls the bike by using key pressed events with using UserInputService, you can read more about it here https://developer.roblox.com/en-us/api-reference/event/Mouse/KeyDown

  3. Once you made the keybinds for the bike make sure that they can reposition the bike sprite's from the current position. I suggest making a local varible when handling positions

Thats how you would start. I've never made a 2D game but this might work.

0
Thank you for your answer! I'm pretty sure I'm mostly done with step 1 and 2, but how would you reposition the bike based on the key the player presses? SprinkledFruit101 135 — 3y
Ad

Answer this question