Discuss Scratch

jennith1357531
Scratcher
15 posts

Bullets stop firing

https://scratch.mit.edu/projects/188488935/

This project is a remix, btw.
So, here's the problem. There's a complete separate sprite for firing bullets called aim. About 45 seconds into playing the game the bullets stop firing. I've tried removing some things but still nothing. The project I remixed had the problem too. Unless there is a limit to the bullets I can fire?
I'd appreciate your guys help

when green flag clicked
forever
if <Final Project Made> then
Leave Scratch
end
end
mstone326
Scratcher
1000+ posts

Bullets stop firing

Scratch has a clone limit of 301. So presumably you're reaching that limit. What sprites are you making clones of? Be sure to delete clones when they are no longer needed.

High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
jennith1357531
Scratcher
15 posts

Bullets stop firing

I am deleting the clones. Every time the bullet touches the edge of the screen or the boss, I have it set to delete the clone.
The weapon and the bullets are separate sprites, the bullet sprite is called “Aim”.

when green flag clicked
forever
if <Final Project Made> then
Leave Scratch
end
end
mstone326
Scratcher
1000+ posts

Bullets stop firing

Aim doesn't have bullets as a costume. Is it the user bullets, clockwork_assault, that stop working?

If it is the sprite called clockwork_assault then look at this remix. Fixed the loop for the bullet to repeat until touching edge, then within that repeat check for touching the various parts of the enemy, then deleted them accordingly. See if this helps. (I also disabled all collision that can end your characters game so we can test the bullets)

https://scratch.mit.edu/projects/188640111/

Last edited by mstone326 (Nov. 25, 2017 02:26:39)


High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
jennith1357531
Scratcher
15 posts

Bullets stop firing

Sorry, I meant Clockwork Assault.
For some reason, it still stops firing after 45-60 seconds?
As I said earlier, it was doing that in the project I remixed.

when green flag clicked
forever
if <Final Project Made> then
Leave Scratch
end
end
mstone326
Scratcher
1000+ posts

Bullets stop firing

Really? I just held shoot down for like 5 minutes and it didn't Let me look again. THat loop is a bit of a mess, I didn't really want to recode it but I'll give it a good look right now.

Ok, it is more like 2 minutes on my CHromebook. I see, give me a sec

Last edited by mstone326 (Nov. 25, 2017 02:31:24)


High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
jennith1357531
Scratcher
15 posts

Bullets stop firing

Welp, thanks for helping me with this
I don't really make games with the shooting mechanic so

when green flag clicked
forever
if <Final Project Made> then
Leave Scratch
end
end
jennith1357531
Scratcher
15 posts

Bullets stop firing

I might experiment with some of the scripts related to the shooting, and see if i can find the source of the glitch

when green flag clicked
forever
if <Final Project Made> then
Leave Scratch
end
end
mstone326
Scratcher
1000+ posts

Bullets stop firing

I think right laser and left laser are causing part of the issue.

High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
jennith1357531
Scratcher
15 posts

Bullets stop firing

I just found the bug.
The actual sprite for the weapon (not the bullets) was acting like the bullet sprite, making clones. But these clones were hidden, making them do nothing, and they didn't have any set for collision, and they built up, and then probably reached the max clone limit.
Welp, thanks for helping!

when green flag clicked
forever
if <Final Project Made> then
Leave Scratch
end
end
mstone326
Scratcher
1000+ posts

Bullets stop firing

Good find. I had created a bullet counter and could get it to 200 then it would stop which tells me that something else was creating clones too. Was just reporting back. Good work.

High School Athletic Director / Middle School Tech Teacher / High School Baseball Coach
Kung Fu by Nintendo 1984 - https://scratch.mit.edu/projects/369994801/
Taco Defense - Speed Typing - https://scratch.mit.edu/projects/316795450/
Halloween Boss Battle - Taking Back our Woods - https://scratch.mit.edu/projects/257155118/
Almost Pong - https://scratch.mit.edu/projects/656276979/
Studio - My Best Projects - https://scratch.mit.edu/studios/4125978/
Forum Help Project Examples - https://scratch.mit.edu/studios/4133335
jennith1357531
Scratcher
15 posts

Bullets stop firing

Thanks for helping!

when green flag clicked
forever
if <Final Project Made> then
Leave Scratch
end
end
nolan-that-nice-guy
Scratcher
1 post

Bullets stop firing

I need help to where my gun stops firing when the variable gets to zero. I dont want to have to mute it and hide it tho i just want it to stop shooting
Harakou
Scratcher
1000+ posts

Bullets stop firing

nolan-that-nice-guy wrote:

I need help to where my gun stops firing when the variable gets to zero. I dont want to have to mute it and hide it tho i just want it to stop shooting
Hi! This topic is rather old - when you ask for help on an old thread, people often will only respond to the original post because they don't notice yours. if you need help, you're much better off creating a new thread. Be sure to explain the problem you're having! If you have a question about a post that was made here, you can always include a link to it in your new topic. Thanks!

Powered by DjangoBB