Hey all, I have followed a youtube tut on making an edge scroll with a mouse area, all works as intended, here is the code I am using.
Question is, how can I stop the image that is scrolling stop at the edge of the screen instead of disappearing into an abyss?
Python:
screen edgescroll_screen():
mousearea:
area(0,0,100,1080)
hovered SetVariable("xp", xp+5), Return()
mousearea:
area(1820,0,1920,1080)
hovered SetVariable("xp", xp-5), Return()
mousearea:
area(100,0,1820,100)
hovered SetVariable("yp", yp+5), Return()
mousearea:
area(100,980,1820,1080)
hovered SetVariable("yp", yp-5), Return()