Discuss Scratch

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
——————————————————————————–

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:

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

banana439monkey wrote:

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

MiniCoder11 wrote:

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
I tried that but it still didn't work.

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.

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.
trollsomeisback
Scratcher
17 posts

Bullet won't show up

deck26 wrote:

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

trollsomeisback wrote:

MiniCoder11 wrote:

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
I tried that but it still didn't work.

There are probably to many clones on screen right now. Maybe try deleting the clones?
trollsomeisback
Scratcher
17 posts

Bullet won't show up

Departure98 wrote:

trollsomeisback wrote:

MiniCoder11 wrote:

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
I tried that but it still didn't work.

There are probably to many clones on screen right now. Maybe try deleting the clones?
What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.
Departure98
Scratcher
4 posts

Bullet won't show up

trollsomeisback wrote:

Departure98 wrote:

trollsomeisback wrote:

MiniCoder11 wrote:

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
I tried that but it still didn't work.

There are probably to many clones on screen right now. Maybe try deleting the clones?
What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.
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.
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?!
Departure98
Scratcher
4 posts

Bullet won't show up

Departure98 wrote:

trollsomeisback wrote:

Departure98 wrote:

trollsomeisback wrote:

MiniCoder11 wrote:

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
I tried that but it still didn't work.

There are probably to many clones on screen right now. Maybe try deleting the clones?
What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.
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.
Can't you only use like, 1 or 2 enemies?
trollsomeisback
Scratcher
17 posts

Bullet won't show up

Departure98 wrote:

Departure98 wrote:

trollsomeisback wrote:

Departure98 wrote:

trollsomeisback wrote:

MiniCoder11 wrote:

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
I tried that but it still didn't work.

There are probably to many clones on screen right now. Maybe try deleting the clones?
What do you mean deleting the clones? There's already a “Delete this clone” Block in the bullet script.
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.
Can't you only use like, 1 or 2 enemies?
I removed footbrawl's clone but still nothing works.
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

deck26 wrote:

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.
that might work

Powered by DjangoBB