Using Scroll To with a slide in Menu.

Get help using Construct 2

Post » Wed Feb 06, 2013 8:50 pm

I have a rather large layout for my platforming game, and I want to be able to use Scroll to to have the Camera follow my character.

However, I have a top UI menu, and also a slide in menu that slides in from the top when you hit a keyboard key.

How could I made the Camera follow the Character, and have the UI and Slide in menu also follow, and have the Slide in Menu still work?

I've searched all over the forums and google, and haven't been able to figure out a good solution for this.

Thanks again everyone!

B
4
Posts: 78
Reputation: 606

Post » Wed Feb 06, 2013 8:58 pm

I'm not sure how you are doing the slide in menu, so that might complicate things, but it sounds like you just need to set the Parallax.

See here in the manual:
https://www.scirra.com/manual/85/layers

Set the stuff that should stay put on screen to a Parallax of 0, and it should sit still while the layout scrolls around under it. (or over it depending on your layer order.)

(edit: I always forget to make the link clickable.) Paradox2013-02-06 21:01:09
B
201
S
52
G
30
Posts: 897
Reputation: 36,621

Post » Wed Feb 06, 2013 9:04 pm

Hey thanks!

It's funny, I looked at the Layers page a little while ago, and must have totally missed the Parallax portion, and allowing things to not scroll. Thanks for bringing that to my attention.

Sorry for posting something I could have easily found.
B
4
Posts: 78
Reputation: 606

Post » Thu Feb 07, 2013 9:38 am

No problem, there's a lot there, it's easy to miss. And now there's a greater chance the next person searching the forums for something like this, will find the answer.
B
201
S
52
G
30
Posts: 897
Reputation: 36,621


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, armaldio, plinkie and 15 guests