How do you scroll sideways?


#1

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


#2

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)


#3

XD


#4

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? :)


#5

No I don’t know any scrolling codes


#6

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?


#7

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


#8

Yes please I would love that


#9

Ok cool!!!


#10

They also made a video. Remember that?


#11

Yeah, I remember that :DDDDD


#12

Okay, here it is:

Tell me if you need any more help! :)


#13

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.