Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sprites Not spawning randomly and not turning
- Caiden2000
- Scratcher
41 posts
Sprites Not spawning randomly and not turning
I have my newest game here
http://scratch.mit.edu/projects/24811661/
As you can see, the top zombies aren't doing the same as the bottom zombies. But both top and bottom zombies have the same exact code, just one little tweak on where on the Y axis they spawn. Why are they acting so drastically different?! It started when I implemented sounds in the zombies, which I moved to the stage after the problem, but the problem is still occurring! Any obvious or not so obvious reasons that this is happening? I've copied the code several times from the bottom to the top… Please help
http://scratch.mit.edu/projects/24811661/
As you can see, the top zombies aren't doing the same as the bottom zombies. But both top and bottom zombies have the same exact code, just one little tweak on where on the Y axis they spawn. Why are they acting so drastically different?! It started when I implemented sounds in the zombies, which I moved to the stage after the problem, but the problem is still occurring! Any obvious or not so obvious reasons that this is happening? I've copied the code several times from the bottom to the top… Please help
- vidarfw02
- Scratcher
100+ posts
Sprites Not spawning randomly and not turning
Think I found it. You have a very wrong center point on the top sprite
Set the center point right…and stop and start the game and it works…Irritating, huh ?
Done the same thing
As payment you have to bug test my game: http://scratch.mit.edu/projects/24712617/
Cool game btw
Set the center point right…and stop and start the game and it works…Irritating, huh ?
Done the same thing
As payment you have to bug test my game: http://scratch.mit.edu/projects/24712617/
Cool game btw
Last edited by vidarfw02 (July 17, 2014 22:07:15)
- stickfiregames
- Scratcher
1000+ posts
Sprites Not spawning randomly and not turning
This looks like a bug. I deleted the top zombie sprite and remade it by copying the bottom zombie, and it worked.
Also, you might want to put a wait block in the death script, because it is too fast for you to see the dead sprite.
Edit: Ninja'd! And I didn't think to look at the centre point.
Also, you might want to put a wait block in the death script, because it is too fast for you to see the dead sprite.
Edit: Ninja'd! And I didn't think to look at the centre point.
Last edited by stickfiregames (July 17, 2014 22:12:48)
- Discussion Forums
- » Help with Scripts
- » Sprites Not spawning randomly and not turning