Is there a way to save the x,y coordinates when each document gets moved, and when the player leaves and comes back, the draggables can be arranged in the same positions the player left them?
Code: Select all
screen drag_test_pretest:
draggroup:
drag:
drag_name "Document1"
drag_raise True
droppable False
clicked [ToggleScreen("drag_test_pretest", transition=None), Call("cutscene")]
frame:
has vbox
label "Cutscene"
text "This will display a cutscene"
drag:
drag_name "Document2"
drag_raise True
droppable False
clicked [ToggleScreen("drag_test_pretest", transition=None), Show("document")]
frame:
has vbox
label "Display Document"
text "This will display a larger version of the document"
drag:
drag_name "Document3"
child "dragdrop_item1.png"
drag_raise True
droppable False
frame:
has vbox
label "This does nothing"
text "really"