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

#1 2011-11-30 19:53:10

Theconcon888
New Scratcher
Registered: 2011-11-30
Posts: 4

how do you...

Say you create a sprite called pac-man, how do you make it so when he touches a black dot the black dot dissapears
http://scratch.mit.edu/forums/post.phphttp://scratch.mit.edu/forums/post.php?fid=6#req_message?fidhttp://scratch.mit.edu/forums/post.php?fid=6#req_message=6#req_message
and what?
or have i got it all wrong

Offline

 

#2 2011-11-30 19:57:06

Theconcon888
New Scratcher
Registered: 2011-11-30
Posts: 4

Re: how do you...

sorry didnt think itd look like that...  sad  well can you just explain from the top?

Offline

 

#3 2011-11-30 20:50:53

gettysburg11
Scratcher
Registered: 2008-06-14
Posts: 1000+

Re: how do you...

Try putting a script like this in for your black dot sprite:

http://i40.tinypic.com/2eewmjc.jpg


http://i256.photobucket.com/albums/hh184/mnacmilan/LOGO_ACMILAN-Splash.gif

Offline

 

#4 2011-11-30 21:23:39

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

Re: how do you...

gettysburg's script works, but you have to place it inside very dot (each dot has to be a sprite).  Because of this, many Scratchers simply stamp the dots with one sprite, and then just paint over them with Pacman.


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

Offline

 

#5 2011-12-01 13:59:09

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: how do you...

MoreGamesNow wrote:

gettysburg's script works, but you have to place it inside very dot (each dot has to be a sprite).  Because of this, many Scratchers simply stamp the dots with one sprite, and then just paint over them with Pacman.

But, that is more hard and complicated for New scratchers, so i reccomend not doing the stamping one until you have more Scratch-know-how to do it.


I'm back.
Maybe.

Offline

 

#6 2011-12-03 15:42:44

LewisZapata-Lee
New Scratcher
Registered: 2011-11-30
Posts: 45

Re: how do you...

you need to use broadcasting (or at least that's the easy way to do it).  this is a message one sprite sends to all other sprites.  this is a simple script I'd use:


pacman
when green flag clicked
|go to [{location}]
ect...
|if touching colour [black]|
|broadcast [got-you]|   


dot
when green flag clicked
|show|
|go to [{location}]|

when I receive [got-you]
|hide|
|go to [{location}]|

Offline

 

Board footer