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

Get help using Construct 2

Post » Wed Apr 02, 2014 12:18 am

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.
B
9
S
2
Posts: 111
Reputation: 1,010

Post » Wed Apr 02, 2014 1:15 am

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.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Wed Apr 02, 2014 2:31 pm

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?
B
9
S
2
Posts: 111
Reputation: 1,010

Post » Wed Apr 02, 2014 4:09 pm

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.
You do not have the required permissions to view the files attached to this post.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838

Post » Thu Apr 03, 2014 4:18 am

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. :)
Last edited by puzzele on Thu Apr 03, 2014 4:25 am, edited 1 time in total.
B
9
S
2
Posts: 111
Reputation: 1,010

Post » Thu Apr 03, 2014 4:25 am

Np and good luck with the project :D
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,838


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests