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

#1 2008-03-01 19:30:22

mankee34
Scratcher
Registered: 2008-02-27
Posts: 19

Game help

I am creating a Wack a Mole style game and I am having a little bit of trouble. I made a mallot follow the cursor and put the following in on it's script:

When the green flag is clicked
forever
go to mousepointer

When <Mallot> is clicked
Broadcast <Hit>


On one of my characters that pops up, I put the following:

When I recieve <Hit>
Forever if
Hide


When ever I click on the characters with the mallot they don't disappear. Is there a way to fix this? Thanks!

Offline

 

#2 2008-03-01 20:19:27

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: Game help

Hmm. Try changing the character to:

When recieve <hit>
hide

The forever if block is a condition block.
Also, try changing the mallot one to:

When flag clicked
[forever if (touching <the character that pops up>)
if (mouse down)
broadcast <hit>]

If you don't change the mallot one, I think that the mole will hide everytime you click any where on the screen.

If this doesn't work, ask me again. And above all: Happy Scratching!!

Offline

 

#3 2008-03-01 20:59:19

mankee34
Scratcher
Registered: 2008-02-27
Posts: 19

Re: Game help

Thank you so much! It worked PERFECTLY!

Offline

 

#4 2008-03-02 08:37:10

zoocom10
Scratcher
Registered: 2008-01-29
Posts: 7

Re: Game help

do you think this would work in a mallot whack a mole game???  <blocks/><when[Space]key pressed> <broadcast[hit]<set[ whirl ]effect to(120)

Offline

 

#5 2008-03-02 16:11:42

Rukqo
Scratcher
Registered: 2008-01-17
Posts: 100+

Re: Game help

Anytime.

Offline

 

Board footer