This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-17 18:45:34

macandcheese
Scratcher
Registered: 2011-01-11
Posts: 99

questions about blocks.

this is the topic about blocks.



my question.
is there a block like: mouse pointer moving= true/false ?

Offline

 

#2 2011-08-17 18:54:35

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: questions about blocks.

No. and why couldn't you look for yourself? And why is this in Advanced Topics?

Offline

 

#3 2011-08-17 19:08:21

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: questions about blocks.

No, but you could easily make one with a list.

Offline

 

#4 2011-08-17 19:09:15

tunasushi
Scratcher
Registered: 2009-10-07
Posts: 15

Re: questions about blocks.

When flag clicked
start forever

    go to mouse
    set oldy to y position
    set oldx to x position
    wait .1 seconds
    go to mouse
    if ((not (oldy=y position)) or (not (oldx=x position))
        set mousemoving to 1
    else
        set mousemoving to 0
end forever

Last edited by tunasushi (2011-08-17 19:14:59)

Offline

 

#5 2011-08-17 19:13:41

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: questions about blocks.

There isn't a block but you can use this script that I threw together:

http://dl.dropbox.com/u/22935223/mousemovement.gif

download as project


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#6 2012-11-08 17:26:09

macandcheese
Scratcher
Registered: 2011-01-11
Posts: 99

Re: questions about blocks.

thx

Offline

 

Board footer