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

#1 2009-02-22 14:18:29

darters700
Scratcher
Registered: 2009-02-21
Posts: 4

How to make an advanced shooter game

First draw a crosshair. Then make these two scripts
[blocks]<when green flag clicked>
<forever>
<show>
<go to x sad <mouse x>)y sad <mouse y>
<go to front>
<end>

<when I receive[ Game Over
<hide>
<stop script>
[/blocks]

next make a target and make these four scripts
[blocks]<when green flag clicked>
<set{Targets Shot }to(0
<show>
<go to x sad  0 )y sad  0

<when[Target]clicked>
<change{ Targets Shot  }by(1
<go to x sad  <pick random(200  )to( -200 )y sad  <pick random(170  )to( -170

<when green flag clicked>
<forever if><(9  <<> <{ Targets Shot  }>
<move((( <{ Targets Shot  }> </>5  ))  )steps>
<if on edge, bounce>
<end>

<when I receive[ Game Over
<hide>
<stop script>
[/blocks]

Now comes the ranking system. make these five costumes using the text tool on paint new sprite and then paint new costume.

Rank:Beginner
Rank:Novice
Rank:Expert
Rank:Sharpshooter
Rank:Aficionado

then make these two scripts

[blocks]
<when green flag clicked>
<hide>
<go to x sad  0 )y sad  -105

<when I receive[ Game Over
<if><(11  <>><{ Targets Shot  }>  )>
<switch to costume[ costume1
<show>
<else>
<if><< <( Targets Shot  <>> 10 )> <and> <( Targets Shot  <<>50  )> >>
<switch to costume[ costume2
<show>
<else><< 
<if><( Targets Shot    <>>49  )> <and> <(  Targets Shot   <<>75  )> >>
<switch to costume[ costume3
<show>
<else>
<if><( Targets Shot    <>>74  )> <and> <(  Targets Shot   <<>100  )> >>
<switch to costume[ costume4
<show>
<else>
<if><( Targets Shot    <>> 99 )>
<switch to costume[ costume5
<show>
[/blocks]
Now just make a second stage background using the text tool. it should say this
Game over
Press flag to retry

Offline

 

#2 2009-02-22 14:25:07

golfer3
Scratcher
Registered: 2008-11-02
Posts: 1000+

Re: How to make an advanced shooter game

darters700 wrote:

First draw a crosshair. Then make these two scripts
[blocks]<when green flag clicked>
<forever>
<show>
<go to x sad <mouse x>)y sad <mouse y>
<go to front>
<end>

<when I receive[ Game Over
<hide>
<stop script>
[/blocks]

next make a target and make these four scripts
[blocks]<when green flag clicked>
<set{Targets Shot }to(0
<show>
<go to x sad  0 )y sad  0

<when[Target]clicked>
<change{ Targets Shot  }by(1
<go to x sad  <pick random(200  )to( -200 )y sad  <pick random(170  )to( -170

<when green flag clicked>
<forever if><(9  <<> <{ Targets Shot  }>
<move((( <{ Targets Shot  }> </>5  ))  )steps>
<if on edge, bounce>
<end>

<when I receive[ Game Over
<hide>
<stop script>
[/blocks]

Now comes the ranking system. make these five costumes using the text tool on paint new sprite and then paint new costume.

Rank:Beginner
Rank:Novice
Rank:Expert
Rank:Sharpshooter
Rank:Aficionado

then make these two scripts

[blocks]
<when green flag clicked>
<hide>
<go to x sad  0 )y sad  -105

<when I receive[ Game Over
<if><(11  <>><{ Targets Shot  }>  )>
<switch to costume[ costume1
<show>
<else>
<if><< <( Targets Shot  <>> 10 )> <and> <( Targets Shot  <<>50  )> >>
<switch to costume[ costume2
<show>
<else><< 
<if><( Targets Shot    <>>49  )> <and> <(  Targets Shot   <<>75  )> >>
<switch to costume[ costume3
<show>
<else>
<if><( Targets Shot    <>>74  )> <and> <(  Targets Shot   <<>100  )> >>
<switch to costume[ costume4
<show>
<else>
<if><( Targets Shot    <>> 99 )>
<switch to costume[ costume5
<show>
[/blocks]
Now just make a second stage background using the text tool. it should say this
Game over
Press flag to retry

what is all that for???? its a huge post!!!!!!!

Offline

 

#3 2009-02-22 16:24:27

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: How to make an advanced shooter game

golfer3 wrote:

darters700 wrote:

First draw a crosshair. Then make these two scripts
[blocks]<when green flag clicked>
<forever>
<show>
<go to x sad <mouse x>)y sad <mouse y>
<go to front>
<end>

<when I receive[ Game Over
<hide>
<stop script>
[/blocks]

next make a target and make these four scripts
[blocks]<when green flag clicked>
<set{Targets Shot }to(0
<show>
<go to x sad  0 )y sad  0

<when[Target]clicked>
<change{ Targets Shot  }by(1
<go to x sad  <pick random(200  )to( -200 )y sad  <pick random(170  )to( -170

<when green flag clicked>
<forever if><(9  <<> <{ Targets Shot  }>
<move((( <{ Targets Shot  }> </>5  ))  )steps>
<if on edge, bounce>
<end>

<when I receive[ Game Over
<hide>
<stop script>
[/blocks]

Now comes the ranking system. make these five costumes using the text tool on paint new sprite and then paint new costume.

Rank:Beginner
Rank:Novice
Rank:Expert
Rank:Sharpshooter
Rank:Aficionado

then make these two scripts

[blocks]
<when green flag clicked>
<hide>
<go to x sad  0 )y sad  -105

<when I receive[ Game Over
<if><(11  <>><{ Targets Shot  }>  )>
<switch to costume[ costume1
<show>
<else>
<if><< <( Targets Shot  <>> 10 )> <and> <( Targets Shot  <<>50  )> >>
<switch to costume[ costume2
<show>
<else><< 
<if><( Targets Shot    <>>49  )> <and> <(  Targets Shot   <<>75  )> >>
<switch to costume[ costume3
<show>
<else>
<if><( Targets Shot    <>>74  )> <and> <(  Targets Shot   <<>100  )> >>
<switch to costume[ costume4
<show>
<else>
<if><( Targets Shot    <>> 99 )>
<switch to costume[ costume5
<show>
[/blocks]
Now just make a second stage background using the text tool. it should say this
Game over
Press flag to retry

what is all that for???? its a huge post!!!!!!!

hes showing how to make an advanced shooting game


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

Board footer