CP - Alien Breed Remake - 4

Miscellaneous Forums/Blitz Showcase/CP - Alien Breed Remake - 4

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I was looking at the script code and added the following for spawning aliens:
			Case "createalien"
				Select si\param
					Case "alien":SpawnAlien(x,y,-1,STANDARD_ALIEN)
					Case "hugger":SpawnAlien(x,y,-1,FACE_HUGGER_ALIEN)
				End Select


and add this to the test.obj:

18
1
Spawn (Alien)
createalien(alien)|remove(me)
19
1
Spawn (Hugger)
createalien(hugger)|remove(me)

I would imagine a couple of 'invisible' tiles would be added to the objects as triggers (just knocked up a couple of temp ones myself).


Couple of questions come from this?

* best way to determine x,y location to 'create' alien? specific spawn location, random ??
* alien ID - should we track this as part of the SpawnAlien process? ie. global counter
* spawning a number of aliens at once?

You have done a great job with this Mark!