# Train moving

**URL:** https://discussions.unity.com/t/train-moving/554465
**Category:** Scripting
**Tags:** Scripting
**Created:** [October 23, 2014, 2:21pm UTC](https://discussions.unity.com/t/train-moving/554465 "2014-10-23T14:21:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![late98](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@late98](https://discussions.unity.com/u/late98)
#### Post date: [October 23, 2014, 2:21pm UTC](https://discussions.unity.com/t/train-moving/554465/1 "2014-10-23T14:21:45Z")

</div>

Hi  
i am makig subway train simulator.  
how i can make that train have leveler how fast it moves. like if there is 3 levels level 1 2 3 if leveler is on level 1 train will accelerate to 20 km/h and when its on level 2 train will accelerate from 20 to 50 km/h and on level 3 from 50 to 100 km/h. and when its on -1 train will brake. like in world of subway games in cockpit there is leveler.

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/system/32/97283_2.png) [@system](https://discussions.unity.com/u/system)
#### Post date: [October 23, 2014, 2:35pm UTC](https://discussions.unity.com/t/train-moving/554465/2 "2014-10-23T14:35:50Z")

</div>

Your asking how to build to much at once…  
But, what you need to do is work on the basics first,

Figure out how to move your train in one direction, speed it up, and slow it down…  
Once you do that, you will know how to stop it…

Then work on figuring out how to turn your tain…  
Then add some type of track layer…

You have a lot of steps ahead of you…  
But you must first start with the basics…

> **[Unity - Scripting API: Transform](https://docs.unity3d.com/ScriptReference/Transform.html)**

> **[Learn game development w/ Unity | Courses & tutorials in game design, VR,...](https://learn.unity.com/projects)**
>
> Free tutorials, courses, and guided pathways for mastering real-time 3D development skills to make video games, VR, AR, and more.

---

<div class="post-metadata">

### Author: ![late98](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@late98](https://discussions.unity.com/u/late98)
#### Post date: [October 23, 2014, 3:01pm UTC](https://discussions.unity.com/t/train-moving/554465/3 "2014-10-23T15:01:58Z")

</div>

thanks
