Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sprite gets stuck in corner?
- cookiegr
-
100+ posts
Sprite gets stuck in corner?
In my game, my sprite always gets stuck in certain corners, particularly in the middle left two corners.
(not sure if you know what I mean when I say that, but if you play my project, you're bound to run into the problem. Also, my game seems slow to respond at times. Any help?
My game:
http://scratch.mit.edu/projects/11317272/

My game:
http://scratch.mit.edu/projects/11317272/
- drmcw
-
1000+ posts
Sprite gets stuck in corner?
You're using things like broadcast level 1 and wait however you'll find that the when I receive level 1 in the pacman sprite contains a forever block meaning it never exits (unless game ends) so the broadcast is waiting forever too. Check all your broadcast and waits and ensure they don't end in forever loops.
Didn't get stuck in a corner just got stuck on the level screen.
Have tried a few more times and have got stuck and this is because the corridors are too narrow.
Didn't get stuck in a corner just got stuck on the level screen.
Have tried a few more times and have got stuck and this is because the corridors are too narrow.
Last edited by drmcw (July 9, 2013 19:47:59)
- Mr_Hunter
-
6 posts
Sprite gets stuck in corner?
Broadcasting seems to be what was slowing the whole thing down. Check out the new navigation system. Also now, in the START sequence only, the ghosts check for Pacman and not a color. The ghosts have a black outline, and we are keeping Pacman off of black so the ghosts don't ever touch red now.
http://scratch.mit.edu/projects/11349074/
http://scratch.mit.edu/projects/11349074/
- cookiegr
-
100+ posts
Sprite gets stuck in corner?
Thanks but I use downloadable scratch 1.4 so I can't create a custom block. 

- emd245
-
78 posts
Sprite gets stuck in corner?
Same here, same here. About the Scratch 1.4 thing and the fact that the sprite gets stuck in the corner. Thanks but I use downloadable scratch 1.4 so I can't create a custom block.
1: In the experimental process of Artist 1.1 ( play Artist at http://scratch.mit.edu/projects/11489976/ ) same thing happened. Even with scripts, I couldn't get him out of the corner!!
2: OK, I will play your games
Last edited by emd245 (July 18, 2013 22:27:03)
- cookiegr
-
100+ posts
Sprite gets stuck in corner?
I made my walls actually a little smaller just big enough to fit pacman through and it worked. But that's probably only temporary solution. 

- ddcatsrule
-
1 post
Sprite gets stuck in corner?
Ummmmm… Mine got stuck in the sprites menu, and i mean in the sprites menu as like it's in a place i cant drag it from. AND IT HAS MOST THE CODE IN IT!
- Discussion Forums
- » Help with Scripts
-
» Sprite gets stuck in corner?