Have a look at my Simple Shooter game...
http://scratch.mit.edu/projects/Duncan/3914
and see if that gives you a start.
I started to write an easy introduction to making the game...
http://www.duncanmoran.me.uk/shooter.htm
but I have not got around to finishing it yet.
Last edited by Duncan (2007-06-05 08:26:53)
Offline
Olof wrote:
Can somebody tell me how to upload a background to my video.
Select the Stage icon in the panel - bottom right. Select the Backgrounds tab at the top of the middle panel. Click on the Import button and select a background.
Offline
scuba wrote:
does any 1 know how to make an add and subtract life bar
If you have three lives:
Make a sprite which looks like three hearts (or whatever you want to use)
Make a Costume by Copying the sprite and erasing one heart.
Make another Costume by Copying the last one and erasing another heart.
Make a variable called Lives
Set Lives to 3
Set the sprite to costume 1
When a life is lost Change the Lives variable by -1 and show the next costume (so only two hearts are showing)
You will probably need to use Broadcast to communicate the death to the Lives sprite.
If they gain a life Change the Lives variable by +1 and switch back to the previous costume.
Does that make any sense?
Offline
Duncan wrote:
scuba wrote:
does any 1 know how to make an add and subtract life bar
If you have three lives:
Make a sprite which looks like three hearts (or whatever you want to use)
Make a Costume by Copying the sprite and erasing one heart.
Make another Costume by Copying the last one and erasing another heart.
Make a variable called Lives
Set Lives to 3
Set the sprite to costume 1
When a life is lost Change the Lives variable by -1 and show the next costume (so only two hearts are showing)
You will probably need to use Broadcast to communicate the death to the Lives sprite.
If they gain a life Change the Lives variable by +1 and switch back to the previous costume.
Does that make any sense?![]()
not really thanks though
Offline
scuba wrote:
Duncan wrote:
Does that make any sense?
![]()
not really thanks though
Can you give us more details? How far have you got with the game? You could put it in the Help Me Gallery at
http://scratch.mit.edu/galleries/1393
and we could have a look and see where you are going with it.
Offline
Is this the sort of shooter your after ? http://scratch.mit.edu/projects/uncleclives/6281
Please feel free to look at the code if you click the sprites it will give you the script for each one.
Offline
"Hard to make" depends on who you are and what your skills are.
Read the code, understand it, then see if you can do something similar.
Find *several* games you like and read the code for each one.
Quite often there will be good tricks in one game that you can apply to a different game.
Read through the messages on the forum to get programming tips.
Someone on the scratch team should be collecting the programming tips from the forum into a more compact form.
Offline