# Car moving with mouse on x axis

**URL:** <https://forum.kirupa.com/t/car-moving-with-mouse-on-x-axis/321315>\
**Category:** Uncategorized\
**Created:** [April 16, 2011, 8:33am UTC](https://forum.kirupa.com/t/car-moving-with-mouse-on-x-axis/321315 "2011-04-16T08:33:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![typh\_](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@typh\_](https://forum.kirupa.com/u/typh_)\
**Post date:** [April 16, 2011, 8:33am UTC](https://forum.kirupa.com/t/car-moving-with-mouse-on-x-axis/321315/1 "2011-04-16T08:33:59Z")

</div>

Hello

I would like to make a similar effect with car movement found on that site:

[http://www.berlinkebab.pl/](http://www.berlinkebab.pl/)

i assume that there will be something to do with “\_x = \_x+\_xmouse” but how do i define the boundries and what about the wheel movement?  
Or maybe it would be better to do this as a MC and if x of the mouse is less than x of MC then prevFrame, if its more then nextFrame ? Have no idea how to put it all together

Please help… !

Thanks in advance
