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

#1 2007-05-27 20:53:03

squirr3lattack
Scratcher
Registered: 2007-05-27
Posts: 11

How do I represent bullets?

Hey guys. My dad told me about this Stratch program, since I'm interested in video game design. I'm trying to make a simple shooter game and I have no idea how to represent bullets in the game. How do I represent them? Would it be wise to make them moving sprites, or something else? Help would be very appreciated.

Offline

 

#2 2007-05-27 21:00:33

paulmedwal
Scratcher
Registered: 2007-03-09
Posts: 100+

Re: How do I represent bullets?

just make the bullet a sprite. Make it hidden until you press a certain key. Then when you hit that key, tell it to move.

There are a lot of games around the site that do this. I'll build a simple one for you right now though.

Paulmedwal


clutter.scratch.mit.edu Visit the Clutter site to create multi-scene stories and multi-level games with Scratch.

Offline

 

#3 2007-05-27 21:02:27

squirr3lattack
Scratcher
Registered: 2007-05-27
Posts: 11

Re: How do I represent bullets?

Thanks, bro! Can you also tell me how to make it hidden, how to tell it to move, and tell me about creating hit detection? This is a huge help!  smile

Offline

 

#4 2007-05-27 21:07:04

jay
Scratch Team
Registered: 2007-03-11
Posts: 59

Re: How do I represent bullets?

Hey squir3lattack. I think the best way to represent a bullet is to use a sprite. There's a good example in this project
http://scratch.mit.edu/projects/reedfe/2513
if you look at the "missle" sprite.

Here's an example of a game that is like a "shooter" game, but instead of using missiles or bullets, it uses spider webs -- cool
http://scratch.mit.edu/projects/piezilla0322/3124

Offline

 

#5 2007-05-27 21:22:39

paulmedwal
Scratcher
Registered: 2007-03-09
Posts: 100+

Re: How do I represent bullets?

Here is the simplest version of a bullet that hides, shoots and comes back.

http://scratch.mit.edu/projects/paulmedwal/7625

I used roughly the same script for a full game,
http://scratch.mit.edu/projects/paulmedwal/455
Paulmedwal

Last edited by paulmedwal (2007-05-27 21:37:56)


clutter.scratch.mit.edu Visit the Clutter site to create multi-scene stories and multi-level games with Scratch.

Offline

 

#6 2007-05-27 21:25:53

squirr3lattack
Scratcher
Registered: 2007-05-27
Posts: 11

Re: How do I represent bullets?

Thanks, bro!

Offline

 

Board footer