Hi folks.
Recently I was creating my game store and when I finished programming the scroll things didn't work the way I expected.
I tested it in a separate project and found that when I add a layer below the layer you want to scroll, the scroll will not work properly.
The link to that separate project is here:https://drive.google.com/file/d/1GEMAZyry5yLWv7aiAQLqq7MvZjJxLnPe/view?usp=sharing
test it as it is and then remove layer 0 and update the global variable to 0
Develop games in your browser. Powerful, performant & highly capable.
Use Touch.X(layerscroll) and Touch.Y(layerscroll) expressions instead of simply Touch.X and Touch.Y