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

#1 2011-03-05 10:17:01

SpaceManMike
Scratcher
Registered: 2008-02-09
Posts: 100+

How to change the mouse pointer's color

I have a block that can do that!

1.go to scratch-objects > ScriptableScratchMorph and add:

Code:

setCursorColorTo: t1
    World activeHand showTemporaryCursor: ((Form extent: 5 @ 5 depth: 32)
            fillColor: t1)

accept it.
the block code is:

Code:

('set cursor color to %c' #- #setCursorColorTo:)

http://26.media.tumblr.com/tumblr_lvdp6tYTlp1qkvzkho1_500.png

Offline

 

#2 2011-11-26 19:19:09

Tkrandomness
Scratcher
Registered: 2011-08-03
Posts: 44

Re: How to change the mouse pointer's color

how do you go to scratch-objects


{insert signature here}

Offline

 

#3 2011-11-26 20:16:43

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: How to change the mouse pointer's color

I would highly recommend sharing this at the Block Library!   smile

Offline

 

#4 2011-11-26 20:54:12

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: How to change the mouse pointer's color

Where's scratch objects? Is this in Scratch?


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#5 2011-11-26 20:57:22

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: How to change the mouse pointer's color

Tkrandomness wrote:

how do you go to scratch-objects

stevetheipad wrote:

Where's scratch objects? Is this in Scratch?

This is for modifying Scratch 1.4.  Do you know how to open the browser?

Offline

 

#6 2011-11-27 01:49:59

christian2000
Scratcher
Registered: 2010-11-01
Posts: 100+

Re: How to change the mouse pointer's color

nice! i like it!


blerp......
http://obscureinternet.com/wp-content/uploads/Fail-at-Life-Funny-Cards.png

Offline

 

#7 2011-11-27 04:14:11

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

Re: How to change the mouse pointer's color

This is pretty cool! why not share it in the block library?

I was expecting the cursor to simply appear in a different colour but it currently seems to show a small colour swatch instead until I click on the scripting area, where it turns back into the normal cursor.

However, it seems that this is creating a temporary canvas for the cursor, I reckon this could be quite nicely adapted to allow cursors to take costumes from other sprites or from files?

Last edited by sparks (2011-11-27 04:15:42)


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

Offline

 

#8 2011-11-27 04:18:03

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to change the mouse pointer's color

sparks wrote:

However, it seems that this is creating a temporary canvas for the cursor, I reckon this could be quite nicely adapted to allow cursors to take costumes from other sprites or from files?

Precisely. Think of how the stamp works in the paint editor. This uses the same principle.

It would be really easy to get the image from a costume and transfer it to the mouse pointer, not to mention the absolute coolness  big_smile

Offline

 

#9 2011-11-27 10:04:41

Pankaj11
New Scratcher
Registered: 2011-11-27
Posts: 12

Re: How to change the mouse pointer's color

SpaceManMike wrote:

I have a block that can do that!

1.go to scratch-objects > ScriptableScratchMorph and add:

Code:

setCursorColorTo: t1
    World activeHand showTemporaryCursor: ((Form extent: 5 @ 5 depth: 32)
            fillColor: t1)

accept it.
the block code is:

Code:

('set cursor color to %c' #- #setCursorColorTo:)

WOW..Really nice way. I get it,,,

Offline

 

#10 2011-11-27 17:35:53

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: How to change the mouse pointer's color

stevetheipad wrote:

Where's scratch objects? Is this in Scratch?

No, it's in scratch's source code. If you want to find out about it, just search "shift-click R".  smile


http://www.blocks.scratchr.org/API.php?action=text&string=I'm_on_vacation!&xpos=155&ypos=90&font_size=30&bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

#11 2011-11-28 00:42:02

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: How to change the mouse pointer's color

Is there a block to change the colour of it... This would be awesome for awesome games!!!0


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#12 2011-11-28 05:41:13

jurk
Scratcher
Registered: 2010-05-06
Posts: 100+

Re: How to change the mouse pointer's color

cool


http://dl.dropbox.com/u/54228408/cool.png

Offline

 

#13 2011-11-28 09:38:33

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: How to change the mouse pointer's color

OOOH! Great block i never thought of making that... actually I did... XD but I never tried. I never knew if it would work or not...

Ima make it now. XD


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#14 2011-12-04 16:41:21

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: How to change the mouse pointer's color

nathanprocks wrote:

Is there a block to change the colour of it... This would be awesome for awesome projects!!!0

grrr...

Anyways, I'll have to try this - if I can get my brother off the computer, that is.  smile


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

Board footer