i need more information. like what do u mean "mouse move"
do u mean like an if mouse moves? do whatever? or what?
Offline
it is possible, only needs two variables, old mouse Y and old Mouse X. simply have a script looking like the following:
if(oldmouseX=mouseX and oldmouseY=mousey){
mouse moving = false
} else {
oldmouseX = mousex
oldmouseY=mousey
mouse moving = false
}
Offline
yambanshee wrote:
it is possible, only needs two variables, old mouse Y and old Mouse X. simply have a script looking like the following:
if(oldmouseX=mouseX and oldmouseY=mousey){
mouse moving = false
} else {
oldmouseX = mousex
oldmouseY=mousey
mouse moving = false
}
I'm not sure what you mean. Do you mean:
forever
set [ old x ] to ( mouse x )
set [ old y ] to ( mouse y )
if < < ( old x ) = ( mouse x ) > and < ( old y ) = ( mouse y ) > >
set [ moving? ] to [ true ]
else
set [ moving? ] to [ false ]
end if
end forever
It seems you've been using a different language in the forums lately... Have you been learning javascript or actionscript lately?
Last edited by boinoinoi (2009-02-02 22:57:33)
Offline
boinoinoi wrote:
yambanshee wrote:
it is possible, only needs two variables, old mouse Y and old Mouse X. simply have a script looking like the following:
if(oldmouseX=mouseX and oldmouseY=mousey){
mouse moving = false
} else {
oldmouseX = mousex
oldmouseY=mousey
mouse moving = false
}I'm not sure what you mean. Do you mean:
forever
set [ old x ] to ( mouse x )
set [ old y ] to ( mouse y )
if < < ( old x ) = ( mouse x ) > and < ( old y ) = ( mouse y ) > >
set [ moving? ] to [ true ]
else
set [ moving? ] to [ false ]
end if
end forever
It seems you've been using a different language in the forums lately... Have you been learning javascript or actionscript lately?
Can you explain the scripts. Having a hard time....
Offline
Action script, and no, im code works. Hold on, ill make a quick project and post it up
Offline
http://scratch.mit.edu/projects/yambanhee_extras/403316 it has notes, so download
Offline
fg123 wrote:
boinoinoi wrote:
yambanshee wrote:
it is possible, only needs two variables, old mouse Y and old Mouse X. simply have a script looking like the following:
if(oldmouseX=mouseX and oldmouseY=mousey){
mouse moving = false
} else {
oldmouseX = mousex
oldmouseY=mousey
mouse moving = false
}I'm not sure what you mean. Do you mean:
forever
set [ old x ] to ( mouse x )
set [ old y ] to ( mouse y )
if < < ( old x ) = ( mouse x ) > and < ( old y ) = ( mouse y ) > >
set [ moving? ] to [ true ]
else
set [ moving? ] to [ false ]
end if
end forever
It seems you've been using a different language in the forums lately... Have you been learning javascript or actionscript lately?Can you explain the scripts. Having a hard time....
Each of the lines is a block (more or less). the brackets and parentheses are supposed to look like what they look like in scratch. I only do that because I don't like the forum scripts. And sorry, I just realized that the true and false is backwards... If you want, here's an image:
Offline
fg123 wrote:
yambanshee wrote:
http://scratch.mit.edu/projects/yambanhee_extras/403316 it has notes, so download
I got it.
me 2
Offline
then im glad
Offline
http://scratch.mit.edu/projects/bhz/362968
Mouse move sensing, and much more
Offline