Shooter

Blitz3D Forums/Blitz3D Programming/Shooter

Did you even read my posts above???????


You still haven't changed the two loops I mentioned in the post just above your last post.


And look at this:
For EnemyType.EnemyType = Each EnemyType
	If LevelType$ = "Terrain" Then
		PositionEntity EnemyType\mesh,Rand(0,ImageWidth(terrain)),0,Rand(0,ImageHeight(terrain))
	ElseIf LevelType$ = "Maplet
		PositionEntity EnemyType\mesh,Rand(0,MeshWidth(Level)),0,Rand(0,MeshHeight(Level))
	EndIf
	EntityType EnemyType\mesh,4
Next
YOU DID THE SAME THING!
You can't do this:
For EnemyType.EnemyType = Each EnemyType
EnemyType is a TYPE. You can't use it as a variable.
variable    type
   |          |
   |          |
   V          V
EnemyType.EnemyType


Change the variable to something else, like 'thisEnemy'.