hi im making a 2d platform zombie survival game, ive finnished all of the basics so now its time to add in the enamy. there is going to be ten seperate rounds with different types of zombies, for each round i want to have a certain number of zombies, but rather than making many seperate sprites can i just run the whole round's enamies off of the one script???... does that make sense?
Offline
It does make sense, the project in my signature have sort of what you need, altough the second or third games in the series would be a better example. Download -2 or -3 and look at those scripts. That will work!
Offline
I can see why you would want to make it so that each round one script, but I don't think it's possible with Scratch. you'd probably be better off making seperate sprites for each zombie, duplicate the scripts and modify it so that the zombies appear on certain levels.
Mabye you could have the same zombie respawn in the same round. If you make them seperate sprites you can make them spawn mrore randomly. Well that's my input, let me know how your game turns out, I'm a huge fan of zombie games (cod zombies)
Offline
RenCamposYo wrote:
I can see why you would want to make it so that each round one script, but I don't think it's possible with Scratch. you'd probably be better off making seperate sprites for each zombie, duplicate the scripts and modify it so that the zombies appear on certain levels.
Mabye you could have the same zombie respawn in the same round. If you make them seperate sprites you can make them spawn mrore randomly. Well that's my input, let me know how your game turns out, I'm a huge fan of zombie games (cod zombies)
It's possible, but it's easier to make lots of sprites.
When making it, remember that online or in Presentation Mode, the screen only refreshes at the end of loops, or during waits in loops. Stamping is then used to create multiple sprites. See this project for an example.
Offline
see this as an examplewhen i recevemoveclearmake listx ▼make listy ▼addx of zombie 1tox ▼andy of zombie 1toy ▼addx of zombie 2tox ▼andy of zombie 2toy ▼addx of zombie 3tox ▼andy of zombie 3toy ▼seti ▼to0repeat# o zombieschange I by1ifi># o zombiesseti ▼to1go toitem,iofx ▼itemiofy ▼stampreplace itemiofx ▼withx positionreplace itemiofy ▼withy position
sayscratch.mit.edu/projects/eRKSToCK/1777260]this[/url]]
Last edited by PencilFactory (2012-06-13 09:39:22)
Offline
PencilFactory wrote:
when i receivemove ▼clearaddx of zombie 1tox ▼addy of zombie 1toy ▼addx of zombie 2tox ▼addy of zombie 2toy ▼addx of zombie 3tox ▼addy of zombie 3toy ▼seti ▼to0repeat# o zombieschangei ▼by1ifi># o zombiesseti ▼to1go to x:itemy:iofx ▼itemiofy ▼stampreplace itemiofx ▼withx positionreplace itemiofy ▼withy position
Fixedyour ▼scripts
Last edited by SciTecCf (2012-06-13 09:43:04)
Offline
Thanks so much, great help
Offline