How do you scroll sideways?

How on hopscotch do you make the screen move for a game of mine :slight_smile:

8 Likes

What she means if anyone needs clarification, is “how do you make the screen scroll sideways when you swipe the screen?”

(I’m in the same room as her in real life lol)

4 Likes

XD

3 Likes

I think you just use the same scrolling code you would use for up and down, only make it sideways instead!! :D

Do you know any scrolling code? :)

2 Likes

No I don’t know any scrolling codes

3 Likes

Okay, well the Hopscotch team made a project announcing scrolling a long time ago and I learned the scrolling code by looking at the code of that project. You can try that too if you want :D
Do you want me to get the link to it?

3 Likes

When you make it scrolling down, Change the “Change Y” to “Change X”

3 Likes

Yes please I would love that

2 Likes

Ok cool!!!

2 Likes

They also made a video. Remember that?

2 Likes

Yeah, I remember that :DDDDD

3 Likes

Okay, here it is:

https://c.gethopscotch.com/p/xb81d1qi6

Tell me if you need any more help! :)

2 Likes

This is the basic code for scrolling. Play around with the set position values and setting the Scroll X variable to something when the game starts. Let me know if you have any questions.

3 Likes