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

#1 2011-11-30 09:03:19

koops74
New Scratcher
Registered: 2011-11-23
Posts: 5

Space Invaders Help

Hi

I am new to scratch and stuck building a space invaders game.

The ship works and can fire at a sprite.

But When it hits the sprite nothing happends.

I have tried more than one solution without any luck so far.

Any advise would be great:

This is the alien sprite page:

<when green flag clicked>
<go to x sad   )y sad 
<show>


<forever>
<if><touching[ sprite 2
<hide>

Offline

 

#2 2011-11-30 09:14:36

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Space Invaders Help

please could you upload your project so far


http://i.imgur.com/1QqnHxQ.png

Offline

 

#3 2011-11-30 09:19:30

Babado
Scratcher
Registered: 2011-09-15
Posts: 84

Re: Space Invaders Help

Upload your project so we can see.

Offline

 

#4 2011-11-30 09:26:27

koops74
New Scratcher
Registered: 2011-11-23
Posts: 5

Re: Space Invaders Help

Thanks Guy,

I cant get the software to upload from work could be because im behind a proxy.

Will try from home later.

Koops

Offline

 

#5 2011-11-30 13:30:07

koops74
New Scratcher
Registered: 2011-11-23
Posts: 5

Re: Space Invaders Help

Uploaded now:
http://scratch.mit.edu/projects/koops74/2185838

Offline

 

#6 2011-11-30 14:37:51

Babado
Scratcher
Registered: 2011-09-15
Posts: 84

Re: Space Invaders Help

Fixed.

On Sprite 3, change it so that...



<when green flag clicked>
<go to x sad  -144 )y:(133)Show



<when green flag clicked>
<forever if>
touching sprite two

<hide>

Last edited by Babado (2011-11-30 14:40:28)

Offline

 

#7 2011-11-30 16:31:50

koops74
New Scratcher
Registered: 2011-11-23
Posts: 5

Re: Space Invaders Help

Thanks Babado,

So i needed the <when green flag clicked>

and also <forever if> not <if>

not sure why but it working.

Offline

 

#8 2011-11-30 17:02:33

Babado
Scratcher
Registered: 2011-09-15
Posts: 84

Re: Space Invaders Help

Mmhm

The if block checks straight away, for example


Green flag clicked
if bla bla bla

That means it would check if it happend straight away. Forever if checks over and over again.

If=Straight away

Forever if=Anytime during the program

Offline

 

#9 2011-12-01 04:46:51

koops74
New Scratcher
Registered: 2011-11-23
Posts: 5

Re: Space Invaders Help

Thanks Babado,

I get it now.  smile

Offline

 

Board footer