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

#1 2008-08-23 08:20:57

TGPGT
Scratcher
Registered: 2008-08-23
Posts: 4

how do i make it so you have to shoot it at the creature?

I'm making a scratch game with some blue thing battling a dark hooded spirit thing, but so far, as long  as i press the shooting button, the spirit is defeated no matter where I am! How do i make it so you have to shoot it pointing AT the spirit?

Offline

 

#2 2008-08-23 17:30:54

terminator355
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: how do i make it so you have to shoot it at the creature?

im expecting u have the code to make it shoot a bullet or whatev, after you do make the bullet red and put this in the enemy:
[blocks]
<when green flag clicked>
<forever>
<if><touching color[ red
<hide>
(and if you have a score var)<set{ score }to( (( <{ score }> <+> 1 ))
<end>
<end>
[/blocks]


No new stuff for now guys  wink  join me for some Black Ops on xbox: termhn or for some rock band on PS3: rocket232

Offline

 

#3 2008-08-27 18:25:28

mariobrosrule
Scratcher
Registered: 2008-06-09
Posts: 1000+

Re: how do i make it so you have to shoot it at the creature?

For the bad guy:

<when green flag clicked>
<forever if><touching[ bad guy
<hide>
<change{ score  }by( 1
<end>

Last edited by mariobrosrule (2008-08-27 18:26:12)

Offline

 

Board footer