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

#1 2007-06-17 16:17:16

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Text bubbles - is it possible....

...to make it so something talks only when your mouse is on it? I think it is - but I can't get it to do so!


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

#2 2007-06-17 16:33:48

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

Re: Text bubbles - is it possible....

The trick is to have a blank "say" block that fires when your mouse *leaves* the sprite, otherwise the thing that it says will stay there.


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

 

#3 2007-06-18 00:33:12

Graham
Scratcher
Registered: 2007-04-06
Posts: 53

Re: Text bubbles - is it possible....

You could do a block saying:
---------
forever
----------
if-touching mouse-pointer
-----------------------------------
say: Hello!
--------------
else-
-------
say: *blank*
----------------

Last edited by Graham (2007-06-18 00:33:57)


Mini Game heaven: http://scratch.mit.edu/projects/Graham/20856 Don't press the Button: http://scratch.mit.edu/projects/Graham/3167 and Army Ants: http://scratch.mit.edu/projects/Graham/1059

Offline

 

#4 2007-06-18 08:21:46

Kaydoodle13
Scratcher
Registered: 2007-05-19
Posts: 25

Re: Text bubbles - is it possible....

Great idea, Graham! A lot of people may have the problem relyt12101 had. If you want that for a game like "Tag", I guess you could use that if you are trying to catch someone. They might say, "You can't catch me!" when the mouse is not touching the sprite, and "You tagged me!" when the mouse IS touching the sprite.

._.*._.*._.Kaydoodle13._.*._.*._.


._.*._.*._.Kaydoodle13._.*._.*._.

Offline

 

#5 2007-06-20 18:18:40

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Text bubbles - is it possible....

Great ideas, guys!


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

Board footer