Page 1 of 1

I have a question...Object snaps back to the left when drag off screen on the right side.

Posted: Sat Oct 21, 2017 5:41 pm
by BurningTamashi
I have a problem when i drag an object off screen to the right it snaps back to the left. I just want the object to stay at the very right if drag off screen to the right.

Code: Select all

 screen send_detective_screen:
    xmaximum 720
    ymaximum 720
    
    
    $ xpo = renpy.random.randint(1, 720)
    $ xpo1 = renpy.random.randint(1, 720)
    $ ypo = renpy.random.randint(1, 520)
    $ ypo1 = renpy.random.randint(1, 520)

    
    draggroup:
        ypos ypo
        drag:
            ysize 130
            drag_name "Ivy"
            child "images/ivy.png"
            xpos xpo
    draggroup:
        ypos ypo1
        drag:
            ysize 130
            drag_name "Zack"
            child "images/zack.png"
            xpos xpo1
            
 

Re: I have a question...Object snaps back to the left when drag off screen on the right side.

Posted: Sat Oct 21, 2017 10:37 pm
by BurningTamashi
it only happens when i drag the object and the mouse goes out of boundaries. PLS HELP

Re: I have a question...Object snaps back to the left when drag off screen on the right side.

Posted: Fri Jan 19, 2018 9:16 pm
by BurningTamashi
bump

Re: I have a question...Object snaps back to the left when drag off screen on the right side.

Posted: Fri Jan 19, 2018 11:13 pm
by PyTom
This is expected behavior - drags are meant to stay on the screen.