Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Bullet won't show up
- trollsomeisback
- Scratcher
17 posts
Bullet won't show up
I was working on my game, trollsome 6, and i discovered an issue on dr.white's stage where whenever i shoot, the bullet stops showing up. I canceled my game after i struggled to try to fix the issue. Is there any possible way to fix this?
Last edited by trollsomeisback (June 11, 2019 01:59:33)
- banana439monkey
- Scratcher
1000+ posts
Bullet won't show up
Can you send over the project you're working in? Thanks!
Banana
Banana
Banana
——————————————————————————–
Very inactive user who has now become a maker.
If you reply to this post it would be greatly appreciated if you could comment the link to your post on my profile!!!
- MiniCoder11
- Scratcher
100+ posts
Bullet won't show up
In order to get the bullet to show up, you should add a show block to the clone’s starting scripts. Here is an example:
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
when I start as a clone
show
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
Last edited by MiniCoder11 (June 21, 2019 04:43:38)
Please let me know if there is anything else I can do to help
- trollsomeisback
- Scratcher
17 posts
Bullet won't show up
Can you send over the project you're working in? Thanks!
Banana
https://scratch.mit.edu/projects/315811948/
- trollsomeisback
- Scratcher
17 posts
Bullet won't show up
I tried that but it still didn't work. In order to get the bullet to show up, you should add a show block to the clone’s starting scripts. Here is an example:when I start as a clone
show
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
Please let me know if there is anything else I can do to help
Last edited by trollsomeisback (June 12, 2019 01:26:08)
- MiniCoder11
- Scratcher
100+ posts
Bullet won't show up
Could you please tell me which sprite the bullet originates from so that I can find the solution to your problem. Right now I am looking at about three different sprites that have “bullet” in their names but none of them use clones.
The “P1 Bullet” appears properly when the clone is created.
The “P1 Bullet” appears properly when the clone is created.
Last edited by MiniCoder11 (June 21, 2019 04:44:13)
Please let me know if there is anything else I can do to help
- deck26
- Scratcher
1000+ posts
Bullet won't show up
Just a quick comment - don't leave the forever loop running when you hide the first sprtie. You're just giving Scratch extra work to do for no reason.
@MiniCoder11 is right - please identify the sprite and how to see the problem. Helping on a project with over 100 sprites is not a trivial thing.
@MiniCoder11 is right - please identify the sprite and how to see the problem. Helping on a project with over 100 sprites is not a trivial thing.
- trollsomeisback
- Scratcher
17 posts
Bullet won't show up
Just a quick comment - don't leave the forever loop running when you hide the first sprtie. You're just giving Scratch extra work to do for no reason.
@MiniCoder11 is right - please identify the sprite and how to see the problem. Helping on a project with over 100 sprites is not a trivial thing.
I tried stopping all the scripts in in the first sprite which is the logo and it didn't help anything. The bullet in dr.white's stage only works for a few seconds.
- deck26
- Scratcher
1000+ posts
Bullet won't show up
I didn't say it would help the problem, just that it wasn't sensible coding. Still don't know where to look for the problem or how to replicate.
- Departure98
- Scratcher
4 posts
Bullet won't show up
I tried that but it still didn't work. In order to get the bullet to show up, you should add a show block to the clone’s starting scripts. Here is an example:when I start as a clone
show
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
Please let me know if there is anything else I can do to help
There are probably to many clones on screen right now. Maybe try deleting the clones?
- trollsomeisback
- Scratcher
17 posts
Bullet won't show up
What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.I tried that but it still didn't work. In order to get the bullet to show up, you should add a show block to the clone’s starting scripts. Here is an example:when I start as a clone
show
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
Please let me know if there is anything else I can do to help
There are probably to many clones on screen right now. Maybe try deleting the clones?
- Departure98
- Scratcher
4 posts
Bullet won't show up
Well I think that there are TOO Many clones of enemies onscreen that it's not letting the bullet appear cuz there are too many clones.What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.I tried that but it still didn't work. In order to get the bullet to show up, you should add a show block to the clone’s starting scripts. Here is an example:when I start as a clone
show
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
Please let me know if there is anything else I can do to help
There are probably to many clones on screen right now. Maybe try deleting the clones?
- Nambaseking01
- Scratcher
1000+ posts
Bullet won't show up
After looking at all these posts, I cannot seem to find an issue. Maybe you set your variable to a value other than 0 when starting the loop? That prevents it from running because you added an if statement.
Hey there! My name is Nammy. I'm a male Forum Helper and Scratch Wiki Editor.
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
- Departure98
- Scratcher
4 posts
Bullet won't show up
Can't you only use like, 1 or 2 enemies?Well I think that there are TOO Many clones of enemies onscreen that it's not letting the bullet appear cuz there are too many clones.What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.I tried that but it still didn't work. In order to get the bullet to show up, you should add a show block to the clone’s starting scripts. Here is an example:when I start as a clone
show
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
Please let me know if there is anything else I can do to help
There are probably to many clones on screen right now. Maybe try deleting the clones?
- trollsomeisback
- Scratcher
17 posts
Bullet won't show up
I removed footbrawl's clone but still nothing works.Can't you only use like, 1 or 2 enemies?Well I think that there are TOO Many clones of enemies onscreen that it's not letting the bullet appear cuz there are too many clones.What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.I tried that but it still didn't work. In order to get the bullet to show up, you should add a show block to the clone’s starting scripts. Here is an example:when I start as a clone
show
This script will cancel out the hide block used earlier and it will enable the bullet to show when it is fired.
Please let me know if there is anything else I can do to help
There are probably to many clones on screen right now. Maybe try deleting the clones?
- deck26
- Scratcher
1000+ posts
Bullet won't show up
Try copying the project and deleting as much as possible from the copy. At the moment there is too much going on in your project. If you delete one sprite at a time and test you'll have more chance of looking for twhat is causing the problem.
- Departure98
- Scratcher
4 posts
Bullet won't show up
that might work Try copying the project and deleting as much as possible from the copy. At the moment there is too much going on in your project. If you delete one sprite at a time and test you'll have more chance of looking for twhat is causing the problem.
- Discussion Forums
- » Help with Scripts
- » Bullet won't show up