The action of the game takes place inside a viewport, which is slightly larger than the screen. Your mouse position within the viewport determines what part of the screen you see. So, for example, having your mouse in the lower left quadrant of the screen will display more of the lower left backdrop.
I know that this sounds like edgescroll, but that's not quite what I want. If the cursor is sitting still, I don't want the backdrop to be continuously moving. Rather, I want the location of the mouse cursor to have a 1:1.25 relation to the offset of the viewport.
My first stab at this involved using edgescroll anyway and defining a function in python, something like this (abridged):
Code: Select all
init python: def scroll_speed(i): //How do I adjust the viewport from here? return i screen containerscreen(): viewport id "room_view": #code that defines the size of the viewport goes here... edgescroll (280, 50, scroll_speed)