Hi I'm very new to Scratch. So just learning the different types of stuff i can do. I want to make a zombie game however, either I am not typing the right search words to find the answer so I thought I would post my questions and maybe someone can point me to the right direction. The first is how can I get a sprite to enter the stage and not just be on the stage in the start. Second is well I'll explain what I would like to do. What I would like is that there will be a row of zombies all going in the same direction and then once the first zombie hits an edge it will start to go in another directions and so forth. But once zombie1 hits zombie2 i want them to go in different zombies as well as increase their speed. The third is I was wondering how am I able to make a "boss" zombie appear after the player kills all the small zombies. Is there anyway to put lets say zombies 1 - 10 into a class and once all of the zombies are killed then the "boss" zombie will start to appear and move? Pretty much like detecting the end of something to start something new. Sorry for the long novel..
Offline
sorry number 2 question should say zombie1 hits zombie2 I want them to go in different directions as well......
Offline
"The first is how can I get a sprite to enter the stage and not just be on the stage in the start. "
You can use the show and hide blocks under looks.
" But once zombie1 hits zombie2 i want them to go in different zombies as well as increase their speed. "
You need a variable named [speed] first.
1. Make two scripts like:
When green flag clicked
Forever if touching [the other zombie]
turn 180-direction
Change speed by (1)
When green flag clicked
Set [speed] (5)
Forever
Move (speed) steps
If on edge, bounce
Sorry, but I do not know how to do the boss zombie though.
Offline
"The third is I was wondering how am I able to make a "boss" zombie appear after the player kills all the small zombies. Is there anyway to put lets say zombies 1 - 10 into a class and once all of the zombies are killed then the "boss" zombie will start to appear and move? Pretty much like detecting the end of something to start something new. Sorry for the long novel.."
I think the poster above covered the rest well, so here's how I'd recommend approaching the boss zombie thing. Have a variable "Zombies Dead" or whatever you'd like to call it, and each time a zombie dies, change the variable by one. When you hit the desired number of dead zombies (Let's say 10), then have a script saying "Wait until Zombies Dead = 10" before every script dictating the boss zombie's behavior. Thus, when Zombies Dead = 10, the Boss Zombie scripts will execute/activate and you'll be good to go.
Hope this helps,
- iNK
Offline