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

#1 2008-05-17 06:50:37

fabi85
Scratcher
Registered: 2008-05-13
Posts: 27

use sprites as creatable objects

Hi

For example this problem:
my hero has the ability to shoot bullets.
But he/she  wink  can only shoot one bullet at a time, because theres only one bullet-sprite created.

It's should be possible to create many threads with one object of this sprite, so you can shoot with an automatic gun!  wink

Maybe you could implement this, like costumes? You can have many instances of the sprite.

Last edited by fabi85 (2008-05-17 06:51:28)

Offline

 

#2 2008-05-21 02:20:14

AddZero
Scratcher
Registered: 2007-08-11
Posts: 100+

Re: use sprites as creatable objects

Scratch can't do this.  It would be cool having instanced or copied sprites.  But that could make things complicated fast.

As a work around, you can make several bullets that just take turns appearing...
http://scratch.mit.edu/projects/AddZero/126604#
I think there's better examples of this elsewhere.

This is just 3, but you can do many.  The problem though, is that it will slow down the game when you have many sprites moving around.  You might try just making a line or two quickly move across the screen and playing a machine gun sound... showing a streak instead of showing every bullet.


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

Board footer