- Mar 14, 2020
- 263
- 624
Hey good people,
I'm trying to create a simple draggable screen in which you can pull a shirt off a character. I want it full screen so that you can only move the shirt vertically and you can pull it offscreen.
My issue is that every time I set drag_offscreen to "vertical", it still lets me drag off screen everywhere. I've also tried setting minimums and maximums and I get the same result. If I set drag_offscreen to False, indeed I can't drag off screen, so I have no idea why the "vertical" setting isn't working.
I've also tried with different-size sprites and the results are the same.
Thoughts?
I'm trying to create a simple draggable screen in which you can pull a shirt off a character. I want it full screen so that you can only move the shirt vertically and you can pull it offscreen.
My issue is that every time I set drag_offscreen to "vertical", it still lets me drag off screen everywhere. I've also tried setting minimums and maximums and I get the same result. If I set drag_offscreen to False, indeed I can't drag off screen, so I have no idea why the "vertical" setting isn't working.
Code:
screen topdown():
image "body"
draggroup:
drag:
drag_name "blouse"
xpos 0.0 ypos 0.0
draggable True
child "shirt_and_hands"
selected_hover_child "shirt_and_hands_pull"
drag_handle (0,0, 1.0, 1.0)
drag_offscreen "vertical"
dragged drag_placed
drag:
drag_name "blouse target"
child "dropzone"
draggable False
droppable True
Thoughts?