So i need to make the campaign map for my game bigger than the screen. I can use viewports to an extent, but i've hit a snag. With a normal screen i can position everything with xaligns or xpos etc. With a viewport, I can position the pictures where i need them, or a can make it scrollable. But if i try to do both i am unable to.
Example:
Code: Select all
screen campaign_map:
viewport:
area 0.00,0.00,600,600
draggable True
has vbox
hbox:
add "map/map.png" xalign 0.00 yalign 0.00
add "map/overlay.png" xalign 0.00 yalign 0.00
This results in a window that is scrollable, but makes it so that every picture is next to each other, rather than overlayed like they need to be.
Example:
Code: Select all
screen campaign_map:
viewport:
area 0.00,0.00,600,600
draggable True
has vbox
hbox:
show screen map
screen map:
add "map/map.png" xalign 0.00 yalign 0.00
add "map/overlay.png" xalign 0.00 yalign 0.00
This is an example of the sort of thing i am trying. Obviously its not working. Is there any way to have a screen bigger than the game screen, position things wherever you like and still be able to scroll across it with a viewport?