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.
Offline
<mouse down?> or <when[ stage ]clicked>
Offline
Can you please make more sense of that?
Offline
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
Offline
Yesss, it works, thanks.
Offline
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
Offline
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>
Offline
for everyone who wanted to see my shooting project, here it is http://scratch.mit.edu/projects/markyiscool/225991
Offline
check out this game: scratch.mit.edu/projects/Marine43753/275125
Offline
check out this game: http://scratch.mit.edu/projects/Marine43753/275125
Offline