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!
What I would suggest doing is starting out with these steps below.
Make the bike sprite that is going to move around the player's screen on the gui.
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
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.