Hey all.
I've been searching around all day and looking at example games and such to try and help me but nothing worked.
What I'm trying to do is press a button to shoot, but I want it so that the bullets can be shot one after another and not so that you have to wait for the bullet to collide with something before you can shoot again.
I understand that you have to use as many sprites as you want bullets, which I've done. I've tried various scripts from games where it worked good but for some reason when I tried to place it in my game it didn't work.
So, how exactly can I do this? Let's say I want there to be 3 bullets one after another before it waits for one to collide before it can shoot again.
Thanks in advance!
Offline
Here: http://scratch.mit.edu/projects/shadow_7283/386470 is an example. It needs to be edited, but I just left it that way you can change it to fit your needs.
Offline
Lex224 wrote:
Nevermind, after hours of work I've finally got something working.
Whoops! I guess you won't be needing mine then (you posted this while I was making it).
Offline
Well, instead of using a
[blocks]<broadcast[ ]and wait c>[/blocks]
you'll need to use a
[blocks]<broadcast[ [/blocks]
block. Then the computer won't wait for the message to work, it will just do it and be ready to do it again.
Hope this helps!
Happy Scratch-ing!
Offline
I have wondered that too how can you make a never ending gun burst.
Offline