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

#1 2012-08-23 02:37:17

JakJones
New Scratcher
Registered: 2012-08-22
Posts: 5

Starship Enterprise Game

Hi!

I'm trying to make a Starship Enterprise game where the Klingons shoot at you and scroll up and down.

I need some serious help with these issues-

1. How to make the bullet disappear after the enemy dies
2. How to change the score when an enemy is hit.
3. How to make a loading screen with instructions
4. How to make a game over screen
5. How to make the enemy disappear when it is hit by a bullet.

Thank you so much if you can help! I need to do this for an ICT project.

Offline

 

#2 2012-08-23 02:49:36

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Starship Enterprise Game

You may learn something by looking at the code for this game: http://scratch.mit.edu/projects/BoltBait/1610128

Hope this helps.

Last edited by BoltBait (2012-08-23 02:50:11)


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#3 2012-08-23 10:24:44

Scratcher456
Scratcher
Registered: 2010-12-04
Posts: 58

Re: Starship Enterprise Game

For the bullet I'd suggest something like this:

when gf clicked
forever
     if <touching [enemy]>
          wait (0.1) secs
          hide
     end
end
Then the same thing basically for the enemy, except 'if touching bullet'. You could also tack on a

change [score] by (1)
to increase your score when the enemy dies.

Last edited by Scratcher456 (2012-08-23 10:26:35)


Mining diamonds, mining diamonds, mining diamonds...

Offline

 

#4 2012-08-23 12:41:59

Boombox15
New Scratcher
Registered: 2012-05-08
Posts: 58

Re: Starship Enterprise Game

the game over screen you can use variables to such as:
Forever
If variable "lives" < 0 or "lives" = 0,
broadcast Game Over

When I recieve Game Over, make a sprite show that says game over.


Hope that helps  smile

Offline

 

#5 2012-08-24 01:53:26

JakJones
New Scratcher
Registered: 2012-08-22
Posts: 5

Re: Starship Enterprise Game

Sorry, I meant to say when the enemy bullet disappear after the enemy dies.

Offline

 

#6 2012-08-26 19:42:08

Scratcher456
Scratcher
Registered: 2010-12-04
Posts: 58

Re: Starship Enterprise Game

I think I can help you with that. It'll be easier to see if I just post a project and link it here. I'll try to get that up tomorrow.


Mining diamonds, mining diamonds, mining diamonds...

Offline

 

#7 2012-08-27 08:07:46

Scratcher456
Scratcher
Registered: 2010-12-04
Posts: 58

Re: Starship Enterprise Game

Here you go! http://scratch.mit.edu/projects/Scratcher456/2749114


Mining diamonds, mining diamonds, mining diamonds...

Offline

 

Board footer