- Home /
Side-Scrolling platform help!
I want to create a game like Gravity Guy (link will be included) which has a side-scrolling platform. The character stays at the same positions and changes the gravity but the platform is scrolling. Also I want the platform to be infinite as it is in the game and new objects and obstacles to be added. To be more specific I don't know how to make the platform to be scrolling with those objects coming all the time. Any help will be appreciated. Thanks.
Answer by SmooveB · Mar 15, 2013 at 06:06 PM
You are going to have to learn how to use Unity. For the objects, you will have to become familiar with using unity as a tool to create levels. Try experimenting with GameObjects -> create other -> cube. That is the easy part.
For everything else, you will need to learn to program.
For keeping the guy in the middle of the screen, look at the transform.position of the camera and see about maybe setting the x position of the camera to the same as your guy.
For moving your guy, you have a lot of options. Take a look at the demo projects that come with unity and also Transform.Translate or add a rigidbody component to your guy and look at Rigidbody.AddForce. You should also consider the character controller that comes pre-made with unity.
Odds are none of the above made any sense. That's okay. You have to start at the beginning. http://walkerboystudio.com/html/unity_training___free__.html
This link has some great tutorials to help you get started, but there are way more tutorials out there that you can find to help you if you don't like these. Remember to use [the scripting reference][2]
to look up any scripting stuff that you don't know how to do. Good luck! [2]: http://file:///C:/Program%20Files%20%28x86%29/Unity35/Editor/Data/Documentation/Documentation/ScriptReference/index.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613094453im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to disable mouse wheel scroll inside a scrollview? 1 Answer
how to scroll backgrounds from left to right 2 Answers
How to make text that scrolls horizontally? 2 Answers
Spawned Scrolling background objects gaining a gap when speed increases. 0 Answers
Unity 5 Scroll Rect Methods OnDrag,OnBegin & OnEnd not receive Call 0 Answers