I want to shoot a bullet each time I press the space bar. So far I get that I need to create multiple sprites of the bullet. And with the example above I can shoot one bullet. What next?
The bullet will always go to the center of the sprite,so youcould either do<A:move the non-bullet sprite's center to a diffrent location in paint mode or<B:make a script such as"go to Sprite1 X Sprite1 Y-(Variable)if the sprite only points in one direction.Does that help?
My critique: This is a lovely way to demonstrate shooting. I like that you post the scripts on the screen (as I see you have done in many of your other tutorials). I especially like the simplicity of the tutorial - that only shooting is highlighted, and there is not too many distractions cluttering the screen. Did you consider exploring similar techniques to achieve different effects? For example, falling raindrops might use similar code.I've pointed many people to this when they need help.
This is great. It's one of the first things all of my students want to learn. This script may not need it, but one thought I've had is making pop-up window (or audio file) that comments on what each block in the script is doing. Also, nice graphic.
If the bullet hidden, can other sprites touch it?
No. Only way you can hide and sense soemthing is settign the ghost effect to a high number (sorry for the long response. I never log in as tutorial_maker anymore)
Comments
You need to be logged in to post comments
Add a Comment
Ughh. This game. Wats the point?
U + THIS GAME = epic
thank you so much
thanks a ton!
Thank you !
thanks!
Thank you so much!
How do you get it to go in more ways then right like go where the character is facing?
great plane graphics!!
when i ask my bullet to go back to the sprite, it goes to the edge instead and wont come back! why is this! >:(
Personnally, I suggest using "show" after "move 10 steps" instead of "hide" before (don't worry, I tried yours, too).
Oh,sorry.
I see this is helping... great
Thank god 4 U mate
I LUV YOUU!!! You taught me how to shoot.
thx mate you have helped me a lot wanna add me as a friend... LOL Have fun :P
cool
GENIUS!!!!! ahh i was staying there for ages trying to find out HOW TO MAKE A GUN!!! then you came along...thnx a bunch.
thank you i have alwas whanted to know how to make a gun(or a cannon) I can finnaly make my 'castle defence' yhe way i planned (will be updated soon.)
helpful
this is not very good
IT IS AWESOME
i know
helpful
thanks a lot now I can make my game
thnx mate
cool an F-117 Stealth FightePr
lol
nice plane
AWSOME! Thanks alot!
That's nice and I tried it. Instead, it ended up flinging the cat instead of shooting a ball. Maybe it's because I didn't add another sprite.
Really helped thanks
Nice very usefull thanks
Wow! if you have 1.4, there is another way!
i have lots of tutorialas check out mine
dude you dont even have a tutorial!
This is very helpful! -Sykiria
is the plane sprite 1?
sweet ty
Thank u lots and lots this is the most helpful thing i have found on scratch. awesome.
most helpful i worked out to shoot on my own i did the same thing as this but diffent
(view all replies)do you program this on the main character or the bullet?
the bullet
Very useful. How do you change the direction it shoots in?
I want to shoot a bullet each time I press the space bar. So far I get that I need to create multiple sprites of the bullet. And with the example above I can shoot one bullet. What next?
How do you make it so the bullet comes out somewhere else? Mine comes out of my cats head.. lol.
The bullet will always go to the center of the sprite,so youcould either do<A:move the non-bullet sprite's center to a diffrent location in paint mode or<B:make a script such as"go to Sprite1 X Sprite1 Y-(Variable)if the sprite only points in one direction.Does that help?
How do you make the shots seperate like this one is beside that and the other one is somewhere else.
I like it... btw what if you want 5 shots or something?
5 different sprites
Add an ammo variable and put an if block at the beginning of this so it only fires if your ammo is greater than 0.
(view all replies)I hope you don't mind that I put your project in a gallery of teaching examples for my students.
My critique: This is a lovely way to demonstrate shooting. I like that you post the scripts on the screen (as I see you have done in many of your other tutorials). I especially like the simplicity of the tutorial - that only shooting is highlighted, and there is not too many distractions cluttering the screen. Did you consider exploring similar techniques to achieve different effects? For example, falling raindrops might use similar code.I've pointed many people to this when they need help.
GREAT AND THERES NOTHING BAD YOUR FINE
This is great. It's one of the first things all of my students want to learn. This script may not need it, but one thought I've had is making pop-up window (or audio file) that comments on what each block in the script is doing. Also, nice graphic. If the bullet hidden, can other sprites touch it?
No. Only way you can hide and sense soemthing is settign the ghost effect to a high number (sorry for the long response. I never log in as tutorial_maker anymore)
This is very helpful! I love it!
You tutorials are very good!
Excellent. Displaying the scripts with the actual working sprites is a great way to show this kind of thing.
This is so cool!!! :D
Awesome
I'd like to see you use it, see what you come up with! And keep watching, I'll get up to the most advanced stuff! And yes, I am tutorial_maker
(view all replies)very nice tutorial. I'm sure this will be very helpful for some beginners.