I am working on a game and there is this one part in the shop where I want it to be able to scroll left and right but I don't really know how it works. I know abut of how it would work if it's scrolling up and down.
It's pretty easy!
Just use the code you have for up and down scrolling and replace all the last touch y's with last touch x's for side to side scrolling.
For the objects in the shop, you just switch the x numbers with the y like:
Set Position to X(scrolling variable + some number) Y(some other number)
Have scroll left right buttons and have it all repeat forever set post to X value y y and have scroll buttons change the value
You can have a look in my scrollable website . Look in the Star girl.