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
sorry didnt think itd look like that... well can you just explain from the top?
Offline
Try putting a script like this in for your black dot sprite:
Offline
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.
Offline
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.
Offline
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