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

#1 2009-09-29 15:13:41

Heiberger
Scratcher
Registered: 2009-09-17
Posts: 42

Broadcasting bullets

I dont know if this i the right place to ask this, but i would like to know if there is any way to broadcast mutliple bullets without duplicating the bullet sprite a hundred time...

Offline

 

#2 2009-09-29 15:23:46

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Broadcasting bullets

Well actually not so far that I know of unless you we're to create a very big complex list of scripts and variables  hmm  Others may have discovered a secret though  smile

This is in the right place by the way  smile  it could also be in troubleshooting  smile


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2009-09-29 15:31:08

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Broadcasting bullets

This is best in All About Scratch cause it's asking a question, not having a problem.  wink

Offline

 

#4 2009-09-29 15:33:05

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Broadcasting bullets

Hmm.. well.. argh they both kinda are similar *sips coffee in attempt to stop brain from going crazy  smile *


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#5 2009-09-29 15:38:44

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Broadcasting bullets

*has some RootBeer instead so he won't get drunk.  wink  *

But they aren't very similar.

Troubleshooting is when you're having problems with something, for instance, Scratch.

The All About section is here for questions about Scratch.

Offline

 

#6 2009-09-29 15:45:31

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Broadcasting bullets

Coffee.. drunk? O_o

Anyway i'm gonna leave this thread so it doesn't turn into a chat thread  smile


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#7 2009-09-29 22:00:21

Ssbrawl700
Scratcher
Registered: 2009-02-11
Posts: 100+

Re: Broadcasting bullets

I'm not really sure but you only need about 8 bullet sprites for a decent machine gun.

http://scratch.mit.edu/projects/Ssbrawl700/699305


Can you beat the ever-so challenging Keyboard Khaos?

Offline

 

#8 2009-09-30 05:25:45

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Broadcasting bullets

Heiberger wrote:

I dont know if this i the right place to ask this, but i would like to know if there is any way to broadcast mutliple bullets without duplicating the bullet sprite a hundred time...

Yes, you only need as many sprites as you want displayed on the screen at one time.  You recycle them.  Here's a sample project you might find useful:

http://scratch.mit.edu/projects/Paddle2SeeFixIt/89927


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#9 2009-10-01 23:05:48

Heiberger
Scratcher
Registered: 2009-09-17
Posts: 42

Re: Broadcasting bullets

Yeah I guess I got carried away with the hundred..but I was just wondering if there was a way you could do it with one bullet sprite

Offline

 

#10 2009-10-02 15:14:41

Ssbrawl700
Scratcher
Registered: 2009-02-11
Posts: 100+

Re: Broadcasting bullets

Heiberger wrote:

Yeah I guess I got carried away with the hundred..but I was just wondering if there was a way you could do it with one bullet sprite

No i don't think so


Can you beat the ever-so challenging Keyboard Khaos?

Offline

 

#11 2009-10-02 17:58:20

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Broadcasting bullets

maybe someway where you stamp a costume and glide to mouse pointer when clicked

Offline

 

#12 2009-10-08 17:41:28

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Broadcasting bullets

I would start simple, get stuff working, then elaborate on already good code.

As for the bullets, it depends on how you want them to act in your game. Will they bounce randomly? If so, each bullet must be a separate sprite. Will they come out of the gun in a straight line or at different angles depending on player aim and/or movement? A straight line of bullets that all terminate at the same spot could be done far easier than multiply pathed bullets. And if they bounce too... that that is going to add a lot of overhead to Scratch and slow it down quickly, depending on how many potential max bullets could be on the screen at one time. Not to mention a lot of reflection coding depending on what all you want the bullets to be able to bounce off of.

I'd start pick as simple a version as I could live with and start there. You can always improve on it later when you have a better idea or someone suggests one.

Last edited by Locomule (2009-10-08 17:42:24)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer