Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Shooting games
- DanielSocia
-
73 posts
Shooting games
You know how in shooting games you shoot, and the bullet goes strait in front of you, well I do not know how to do that, here is the project http://scratch.mit.edu/projects/41427774/#editor
- deck26
-
1000+ posts
Shooting games
So when you broadcast Bullet the second sprite needs a script to respond to the broadcast. It probably stays hidden initially, then when fired goes to the first sprite, is shown and then moves in whatever direction you want it to move.
Simple example
Simple example
- digthebone
-
500+ posts
Shooting games
make sure the bullet points in the direction of the shooting sprite
and make the bullet go to the shooting sprite
Last edited by digthebone (Dec. 30, 2014 20:54:54)
- DanielSocia
-
73 posts
Shooting games
I just wanted to say that when I shoot, it does not go in the direction in front of the shooter. If this is the best everyone can do, nice job trying to help me, but maybe coding is not my thing. make sure the bullet points in the direction of the shooting spriteand make the bullet go to the shooting sprite
- deck26
-
1000+ posts
Shooting games
Don't give up, it just takes a bit of practice. To start with you could just tell the bullet to go in one direction - put 270 in the script I gave you (in the point in direction block) and it will go left for example.I just wanted to say that when I shoot, it does not go in the direction in front of the shooter. If this is the best everyone can do, nice job trying to help me, but maybe coding is not my thing. make sure the bullet points in the direction of the shooting spriteand make the bullet go to the shooting sprite
Let me do a quick remix
- DanielSocia
-
73 posts
Shooting games
OkDon't give up, it just takes a bit of practice. To start with you could just tell the bullet to go in one direction - put 270 in the script I gave you (in the point in direction block) and it will go left for example.I just wanted to say that when I shoot, it does not go in the direction in front of the shooter. If this is the best everyone can do, nice job trying to help me, but maybe coding is not my thing. make sure the bullet points in the direction of the shooting spriteand make the bullet go to the shooting sprite
Let me do a quick remix
- deck26
-
1000+ posts
Shooting games
http://scratch.mit.edu/projects/41451920/ will hopefully help you a bit.
- Discussion Forums
- » Help with Scripts
-
» Shooting games