Well, I would use variables. Alrighty:
Make 2 variables. Name one of them {mouse X} and the other {mouse Y}
Now put this script in:
<when green flag clicked>
<forever>
<if><mouse down?>
<set{ Mouse X }to( <mouse x>
<set{ Mouse Y }to( <mouse y>
<glide( )secs to x <{ Mouse X }> )y
<{ Mouse Y }>
<end>
<end>
I use the variables in case you move your mouse
Offline
Bluestribute wrote:
Well, I would use variables. Alrighty:
Make 2 variables. Name one of them {mouse X} and the other {mouse Y}
Now put this script in:
<when green flag clicked>
<forever>
<if><mouse down?>
<set{ Mouse X }to( <mouse x>
<set{ Mouse Y }to( <mouse y>
<glide( )secs to x<{ Mouse X }> )y
<{ Mouse Y }>
<end>
<end>
I use the variables in case you move your mouse
Couldn't you just put the Mouse X and Mouse Y in the Glide Secs script instead?
Offline
Zelda123 wrote:
Bluestribute wrote:
Well, I would use variables. Alrighty:
Make 2 variables. Name one of them {mouse X} and the other {mouse Y}
Now put this script in:
<when green flag clicked>
<forever>
<if><mouse down?>
<set{ Mouse X }to( <mouse x>
<set{ Mouse Y }to( <mouse y>
<glide( )secs to x<{ Mouse X }> )y
<{ Mouse Y }>
<end>
<end>
I use the variables in case you move your mouseCouldn't you just put the Mouse X and Mouse Y in the Glide Secs script instead?
What if you move the mouse?
Offline
I just tried it out, you don't need variables because moving the mouse doesn't change where the glide finishes. Just stick MouseX and MouseY there.
Offline
Bluestribute wrote:
Zelda123 wrote:
Bluestribute wrote:
Well, I would use variables. Alrighty:
Make 2 variables. Name one of them {mouse X} and the other {mouse Y}
Now put this script in:
<when green flag clicked>
<forever>
<if><mouse down?>
<set{ Mouse X }to( <mouse x>
<set{ Mouse Y }to( <mouse y>
<glide( )secs to x<{ Mouse X }> )y
<{ Mouse Y }>
<end>
<end>
I use the variables in case you move your mouseCouldn't you just put the Mouse X and Mouse Y in the Glide Secs script instead?
What if you move the mouse?
Since it's forever setting the variables to Mouse X and Y, it doesn't make a difference.
Offline