This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-03 08:54:41

daroflcopter
Scratcher
Registered: 2010-07-06
Posts: 13

enemy spawner

I'm going to make a platformer with enemys, but I don't want them just to spawn when you kill them. I also want the game to be infinite so I cant use hundreds of enemy sprites. Thanks.


http://i.imgur.com/VwYRW.png

Offline

 

#2 2011-08-03 10:23:35

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: enemy spawner

You should be able to "re-use" enemies - rather than create hundreds.  Figure out how many you would want on-screen at one time, and that's all you should need to have.  They could be identical, and could have several costumes (if desired).  Choose a random costume when they appear and 4 or 5 enemies could seem like many more.

Last edited by EdnaC (2011-08-03 10:32:26)

Offline

 

#3 2011-08-03 13:34:46

daroflcopter
Scratcher
Registered: 2010-07-06
Posts: 13

Re: enemy spawner

Ok, thanks.


http://i.imgur.com/VwYRW.png

Offline

 

Board footer