How do I ONLY scroll to the right? (not up or down)

0 favourites
  • 6 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • I'm making a car game.. I ONLY want the screen to scroll to the right -- when the car goes to the right..... but I do NOT want it to scroll up or down... How the heck do I do it?

    The car has the behavior of 'scroll to' -- but I can't figure out how to do the above and disable the up/down scrolling... Any info would be greatly appreciated. Thanks in advance.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • In system there is one called "Scroll to x" you can use that. You don't need the scroll to behaviour. You just add the scroll to X in an every tick.

  • nimos100: Yes... I fiddled with the 'scroll to x' but I still can't quite figure out how to get it to do what I want. I'm sorry.

    Basically, I'm making a car game - where you only see the car on its side and its driving to the right side of the screen. The car does slips/etc also going towards the right... but I want the screen to ONLY scroll to the right when the car goes to the right.. the car also goes at different speeds to the right.. and sometimes even stands still.

    Hence, I'm a little stuck on how to get it to the scroll to the right while avoiding the up/down issues. Any ideas?

  • Well it should work, so im guessing you might use the "scroll to X" wrong.

    Here is a very simple car moving to the right and the camera following it, is that what you are looking for, otherwise im not sure what you mean.

  • nimos100: You did EXACTLY what I was trying to do.... Thank you soooooooooooooooo much. Seriously!! It is incredibly kind of folks like you who go through the time and trouble of answering my questions. And I REALLY appreciate you taking the time to even draw a tree and a car for me to make it even easier for me to visualize!!

    Seriously... now that I see how the heck you did it, I understand.. but you know what... I really don't think I would have EVER figured it out without you showing me... but now I got it... so sincerely thanks once again. I'm keeping the capx file in my 'learning' folder for future reference also.

  • Np and good luck with the project

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)