Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » My sprites freeze when I click the mouse
- aubiaubiaubi
-
4 posts
My sprites freeze when I click the mouse
I made a game where u play as a bird that moves up and down to avoid the mosquitos that fly at it.
I’m currently working on a shop but that isn’t part of the problem I think,
https://scratch.mit.edu/projects/401160392
The problem is when I go full screen and click the flag, after I press play I’m in the game. You can play the game like normal but I don’t want it to mess up if anyone clicks the mouse.
When I’m playing, and I hold down left or right click, the bird stops flapping its wings and the mosquitos stop moving. If I hold down click while touching a mosquito that causes me to go into negative lives and for some reason the bird pops up in the game over screen. I would appreciate any help because I’m a beginner and have no idea how to fix it.
Btw, I used costumes to animate the bird flapping its wings. Maybe that’s why but it wouldn’t explain the mosquitos stop moving as well
I’m currently working on a shop but that isn’t part of the problem I think,
https://scratch.mit.edu/projects/401160392
The problem is when I go full screen and click the flag, after I press play I’m in the game. You can play the game like normal but I don’t want it to mess up if anyone clicks the mouse.
When I’m playing, and I hold down left or right click, the bird stops flapping its wings and the mosquitos stop moving. If I hold down click while touching a mosquito that causes me to go into negative lives and for some reason the bird pops up in the game over screen. I would appreciate any help because I’m a beginner and have no idea how to fix it.
Btw, I used costumes to animate the bird flapping its wings. Maybe that’s why but it wouldn’t explain the mosquitos stop moving as well
- cs28042008
-
20 posts
My sprites freeze when I click the mouse
Hi!! I have a solution for when the bird flies out of the screen: I made a game where u play as a bird that moves up and down to avoid the mosquitos that fly at it.
I’m currently working on a shop but that isn’t part of the problem I think,
https://scratch.mit.edu/projects/401160392
The problem is when I go full screen and click the flag, after I press play I’m in the game. You can play the game like normal but I don’t want it to mess up if anyone clicks the mouse.
When I’m playing, and I hold down left or right click, the bird stops flapping its wings and the mosquitos stop moving. If I hold down click while touching a mosquito that causes me to go into negative lives and for some reason the bird pops up in the game over screen. I would appreciate any help because I’m a beginner and have no idea how to fix it.
Btw, I used costumes to animate the bird flapping its wings. Maybe that’s why but it wouldn’t explain the mosquitos stop moving as well
this is a very useful block, try with that.
- aubiaubiaubi
-
4 posts
My sprites freeze when I click the mouse
Thank you, but I don't have a problem when the bird flies out of the screen. If I hold down left click all the sprites stop moving
- aubiaubiaubi
-
4 posts
My sprites freeze when I click the mouse
It's kinda hard to explain if u want to see what the problem is without being confused I put a link. then press play and hold click on the bird. all the sprites will stop moving for some reason
- Oumuamua
-
1000+ posts
My sprites freeze when I click the mouse
You have in the sprite start button a cript inside a forever loop broadcast “play”, you need a separated script.


- Discussion Forums
- » Help with Scripts
-
» My sprites freeze when I click the mouse