Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Making clones shoot bullets
- complex
-
10 posts
Making clones shoot bullets
After a cloned bullet has been created, how can I get it to move to a clone?
Or is this impossible, and I just have to wait until the clone system is changed back to clone spawns at parent?
Or is this impossible, and I just have to wait until the clone system is changed back to clone spawns at parent?
- heroguy15
-
27 posts
Making clones shoot bullets
you set two variables to the clone that is shooting's x and y positions (x variable, y variable) and set the bullet to go to x= (x variable) and y = (y variable). there is probably a less complicated way to do this, but that is what I would do.
Last edited by heroguy15 (Feb. 27, 2013 23:08:57)
- drmcw
-
1000+ posts
Making clones shoot bullets
you set two variables to the clone that is shooting's x and y positions (x variable, y variable) and set the bullet to go to x= (x variable) and y = (y variable). there is probably a less complicated way to do this, but that is what I would do.
Yes that was what I did in this shooting game. The bug sprite has a drop bomb function which sets x and y coordinates of the clone in 2 variables before calling a create clone for a bomb.
Last edited by drmcw (March 13, 2013 11:49:11)
- Aditya007
-
42 posts
Making clones shoot bullets
Clone Startup
Go to Gun ''or whatever
repeat until touching edge
move 5 steos
end
hide
Go to Gun ''or whatever
repeat until touching edge
move 5 steos
end
hide
- MMHMMH
-
100+ posts
Making clones shoot bullets
After a cloned bullet has been created, how can I get it to move to a clone?
Or is this impossible, and I just have to wait until the clone system is changed back to clone spawns at parent?
you also have to make the clone set the variables to it's Y position and X position. you set two variables to the clone that is shooting's x and y positions (x variable, y variable) and set the bullet to go to x= (x variable) and y = (y variable). there is probably a less complicated way to do this, but that is what I would do.
- dashabla21
-
1 post
Making clones shoot bullets
How do i get the bullet to shoot at the opponent?


- benhause
-
12 posts
Making clones shoot bullets
but how would u make the bullets go at different times is my question, like if u were making an 2d retro game? so that u can shoot infinite bullets?
- ChannelMiner
-
4 posts
Making clones shoot bullets
How do i get the bullet to shoot at the opponent?
Last edited by ChannelMiner (Dec. 13, 2016 09:47:37)
- -frostyiceprincess-
-
1000+ posts
Making clones shoot bullets
1. Please do not necropost. The last post was over half a year ago.How do i get the bullet to shoot at the opponent?
2. Please don't use Scratch Blocks to talk, it makes it harder to read.
- rararararararar
-
12 posts
Making clones shoot bullets
But what if you want to make multiple clones? What then?After a cloned bullet has been created, how can I get it to move to a clone?
Or is this impossible, and I just have to wait until the clone system is changed back to clone spawns at parent?you also have to make the clone set the variables to it's Y position and X position. you set two variables to the clone that is shooting's x and y positions (x variable, y variable) and set the bullet to go to x= (x variable) and y = (y variable). there is probably a less complicated way to do this, but that is what I would do.
- footsocktoe
-
1000+ posts
Making clones shoot bullets
After a cloned bullet has been created, how can I get it to move to a clone?
Or is this impossible, and I just have to wait until the clone system is changed back to clone spawns at parent?
Here is one way to handle cloned guns and bullets…
https://scratch.mit.edu/projects/167233681/
- FHERJIMOR
-
1 post
Making clones shoot bullets
How do I get clones of seperate enemies have their own projectiles?
- deck26
-
1000+ posts
Making clones shoot bullets
Please create your own topic rather than necroposting. How do I get clones of seperate enemies have their own projectiles?
https://scratch.mit.edu/projects/111228685/ may help.
- Maanas0709
-
5 posts
Making clones shoot bullets
See my project and everything will be fixed
https://scratch.mit.edu/projects/376731230/editor
This is for multiple clones.









https://scratch.mit.edu/projects/376731230/editor
This is for multiple clones.










- deck26
-
1000+ posts
Making clones shoot bullets
Doesn't matter, same method still works. what if i have more than one clone
- Discussion Forums
- » Help with Scripts
-
» Making clones shoot bullets