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

#1 2012-04-06 22:07:44

lukanater
Scratcher
Registered: 2007-09-26
Posts: 100+

Mouse Controls

I think that in Scratch 2.0, we should be able to control the mouse. For example, if were building an FPS and need the mouse to be centered (this needs to be done for most mouse movement scripts.) it would be nice to have a script such as "set mouse X" and "set mouse Y."

I think you can do this in Flash, but I don't remember, I haven't used it much.


http://i1049.photobucket.com/albums/s385/xenokstudios/trippinstudios.png

Offline

 

#2 2012-04-06 23:21:22

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Mouse Controls

As cool as that sounds, my only concern is one of safety.  It would be all to easy to have a script like the one beneath trap someone's mouse.  I supposed you could have a key (the escape key?) automatically stop the program, but you'd have to have a way to tell non-Scratchers how to do it before they could fall victim to such a ploy.  Still, you're right, you could do some interesting (non-malicious) things with a block like that.

when gf clicked
forever
set (mouse X) to [0]
set (mouse Y) to [o]
end


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2012-04-07 18:05:02

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: Mouse Controls

If someone did a malicious thing, they could just press Alt+F4 to close it.


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

#4 2012-04-07 18:11:54

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Mouse Controls

James07 wrote:

If someone did a malicious thing, they could just press Alt+F4 to close it.

It would still be annoying and hurt the community.  Though I suppose that any one who wants to be malicious will find other ways of doing it (is that a good argument for allowing something though?).

And not everyone knows how close a window with keys, especially if you're not used to the operating system (for instance, I have no clue how to close a page with a linux operating system).

By no means am I against such an addition, I'm just voicing concerns.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#5 2012-04-07 20:57:38

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: Mouse Controls

MoreGamesNow wrote:

James07 wrote:

If someone did a malicious thing, they could just press Alt+F4 to close it.

It would still be annoying and hurt the community.  Though I suppose that any one who wants to be malicious will find other ways of doing it (is that a good argument for allowing something though?).

And not everyone knows how close a window with keys, especially if you're not used to the operating system (for instance, I have no clue how to close a page with a linux operating system).

By no means am I against such an addition, I'm just voicing concerns.

Im on a Windows.  Okay.  Back on topic.


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

#6 2012-04-09 18:51:58

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: Mouse Controls

James07 wrote:

MoreGamesNow wrote:

James07 wrote:

If someone did a malicious thing, they could just press Alt+F4 to close it.

It would still be annoying and hurt the community.  Though I suppose that any one who wants to be malicious will find other ways of doing it (is that a good argument for allowing something though?).

And not everyone knows how close a window with keys, especially if you're not used to the operating system (for instance, I have no clue how to close a page with a linux operating system).

By no means am I against such an addition, I'm just voicing concerns.

Im on a Windows.  Okay.  Back on topic.

They could also use thier power button to get off.


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

Board footer