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

#1 2008-02-09 15:32:36

Scratchie
Scratcher
Registered: 2007-08-24
Posts: 29

mouse

It would be great if you let me use my current cursor in Scratch.
[blocks]
<if>I have my cursor
<say[ Thanks! ]>
<else>
<say[ PLZ! ]>
<end>

Offline

 

#2 2008-02-12 11:52:10

SonicPops
Scratcher
Registered: 2007-06-10
Posts: 100+

Re: mouse

Having a different cursor is not nescarry in scratching  smile


smile  Go Crank. Inc!  smile
Not much to say  wink

Offline

 

#3 2008-02-12 16:27:40

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: mouse

I also think it would be cool if you could have different costumes for the mouse pointer. In fact, I cannot see any reason why the mouse pointer should not be treated just like a sprite.


Jens Mönig

Offline

 

#4 2008-02-12 16:54:40

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: mouse

That would be nice, for a wide variety of games and utilities.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#5 2008-02-13 09:23:21

AnNoYeD
Scratcher
Registered: 2008-02-06
Posts: 19

Re: mouse

Well, it would be easy to make cursor mazes with the
"if mouse touching color" block. That would be a good idea.


[image too big deleted by Scratch Team]
http://i188.photobucket.com/albums/z58/macrules_640/Weegee.png DON'T LOOK INTO HIS EYES... woops, too late ><

Offline

 

#6 2008-02-13 11:25:23

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: mouse

"If mouse touching color" can be simulated fairly easily by using a sprite with a 1-pixel costume and a variable "mouse_touching"

when greenflag clicked
set ghost effect to 99
set mouse_touching to 0
forever
   go to mouse-pointer
   if touching color <>
      set mouse_touching to 1
   else
      set mouse_touching to 0
   wait 0.05

Any sprite (or the stage) can look at the mouse_touching variable to see whether the
mouse is touching the color.  You could add more tests if you only want to set mouse_touching when the mouse is down.

Offline

 

Board footer