Hi
For example this problem:
my hero has the ability to shoot bullets.
But he/she 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!
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
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.
Offline