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

#1 2008-07-19 00:11:17

markyiscool
Scratcher
Registered: 2008-04-09
Posts: 100+

Click to shoot

I am making a shooting game and need some hellp. i want the script to be like this; when mouse clicked, switch to costume 'shoot'. in other words, when i click on the mouse, there will be a gun sound and the bullet will come out.


Wanted the Netherlands to win or want to re-experience Spain's victory? Do it withthis!
Projects not being loved, here's an idea!

Offline

 

#2 2008-07-19 00:20:27

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Click to shoot

<mouse down?>  or  <when[ stage  ]clicked>


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-19 00:24:35

markyiscool
Scratcher
Registered: 2008-04-09
Posts: 100+

Re: Click to shoot

Can you please make more sense of that?


Wanted the Netherlands to win or want to re-experience Spain's victory? Do it withthis!
Projects not being loved, here's an idea!

Offline

 

#4 2008-07-19 00:26:05

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Click to shoot

markyiscool wrote:

Can you please make more sense of that?

O.K., well, what it sounds like, do this:

<when green flag clicked>
<forever>
<if><mouse down?>
<switch to costume[ costume2
<wait until><  <not> <mouse down?>  >>
<switch to costume[ costume1


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#5 2008-07-19 00:33:02

markyiscool
Scratcher
Registered: 2008-04-09
Posts: 100+

Re: Click to shoot

Yesss, it works, thanks.


Wanted the Netherlands to win or want to re-experience Spain's victory? Do it withthis!
Projects not being loved, here's an idea!

Offline

 

#6 2008-07-19 00:34:32

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Click to shoot

markyiscool wrote:

Yesss, it works, thanks.

I use that all the time, taught my friend how to. Not many people know that you can use the mouse down block for so many different things


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#7 2008-07-27 03:51:38

Jordanuk2
Scratcher
Registered: 2007-06-07
Posts: 20

Re: Click to shoot

Bluestribute wrote:

markyiscool wrote:

Can you please make more sense of that?

O.K., well, what it sounds like, do this:

<when green flag clicked>
<forever>
<if><mouse down?>
<switch to costume[ costume2
<wait until><  <not> <mouse down?>  >>
<switch to costume[ costume1

You can also use:

<when green flag clicked>
<forever if><mouse down?>
<switch to costume[ costume2
<wait until><  <not> <mouse down?>  >>
<switch to costume[ costume1

Instead of a
<forever>
<if>
<end>


Scratch really needs a English (UK) language, because I live in the UK.  neutral

Offline

 

#8 2008-07-27 07:07:45

markyiscool
Scratcher
Registered: 2008-04-09
Posts: 100+

Re: Click to shoot

for everyone who wanted to see my shooting project, here it is http://scratch.mit.edu/projects/markyiscool/225991


Wanted the Netherlands to win or want to re-experience Spain's victory? Do it withthis!
Projects not being loved, here's an idea!

Offline

 

#9 2008-10-01 13:14:21

Marine43753
Scratcher
Registered: 2008-08-25
Posts: 16

Re: Click to shoot

check out this game: scratch.mit.edu/projects/Marine43753/275125

Offline

 

#10 2008-10-01 15:15:47

Marine43753
Scratcher
Registered: 2008-08-25
Posts: 16

Re: Click to shoot

check out this game: http://scratch.mit.edu/projects/Marine43753/275125

Offline

 

Board footer