There is a way to do it with a single event.
- First, you need a tiled background with texture in size of power of two (16x16, 32x32, 256x256 ex.)
- Put the tiled background on a layer that has 0% X and Y scroll rates. Make it cover the whole display.
- Make an Always event like this:
+Always
TiledBackground: Set offset to ScrollX, ScrollY[/code:2bejle25]
(You can add a factor like ScrollX*0.5, ScrollY*0.5 to make it scroll more slowly)
- You'll also need to scroll the display, just add this to the Always event:
> System Scroll to X ScrollX+(MouseX-ScrollX)*TimeDelta
System Scroll to Y ScrollY+(MouseY-ScrollY)*TimeDelta
[/code:2bejle25]
(This will always scroll the display smoothly toward mouse coordinates)
Make sure you have Unbounded scrolling ticked in Layout Properties
Voila!