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

#1 2012-04-04 00:35:49

HeadshotzKing
New Scratcher
Registered: 2012-04-04
Posts: 1

Making a shooting game, need a little help!

I believe I posted this in the right section, but I am starting to make a shooting game as a school project and would like to know what the best way of doing this is. I am thinking of having bullets rebound off of the wall and that way you can die if you do not jump out of the way fast enough. I think the bullets are just going to go straight but how do I make it that the charactors don't die after one hit? How do I make bullets come out of the gun!? etc.

Offline

 

#2 2012-04-04 05:26:02

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Making a shooting game, need a little help!

You could at least try to create one before asking for help.
There are many games of this type already as well, so I suggest you go and find one and take a look at the scripts for inspiration.


http://trinary.tk/images/signature_.php

Offline

 

#3 2012-04-09 15:15:36

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Making a shooting game, need a little help!

You could:
-Create a variable called "lives"
-Slow down the bullet speed (change "glide" seconds or xvel/yvel)
-Put a bullet sprite "go back (1) layer" over a gun sprite, and then, say "space" is shoot, say

when [space v] key pressed
   broadcast [shoot]
 
And then:
when i receive [shoot]
   go to front
glide (0.5) secs to [wall v]
 if on edge, bounce
 
I hope you found my suggestions helpful.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

Board footer