Hmmm....

Blitz3D Forums/Blitz3D Programming/Hmmm....

elseano(Posted 2003) [#1]
A strange thing....
When I use this code:
;;;;;;;;;;;;;;;;;;;;;;

main_enemy=LoadMesh( "C:/3dgame/enemyship.3ds" )
ScaleEntity main_enemy,0.3,0.3,0
EntityColor main_enemy,50,50,255
PositionEntity main_enemy,100,0,100

;;;;;;;;;;;;;;;;;;;;;;


and this bit of code
Type enemy
		
Field	entity
Field	state
Field	x#,y#,z#
Field	health
Field	level

End Type

shipammount%=8

For s = 1 To shipammount	
	

	enemyxrn=Rand(40,1000)
	enemyyrn=Rand(40,1000)
	enemyzrn=Rand(-30,30)
	ship.enemy=New enemy
	ship\entity=CopyEntity(main_enemy)
	ship\state=patrol
	ship\x=enemyxrn
	ship\y=enemyyrn
	ship\z=enemyzrn
	;PositionEntity ship\entity,enemyxrn,enemyyrn,enemyzrn
	PositionEntity ship\entity,40,0,0
	ship\health=level*5
	ship\level=1
	TurnEntity ship\entity,0,Rand(0,1000),0
	
Next


absolutely nothing happens....
:/ what am I missing here? Anyone? :/


Neochrome(Posted 2003) [#2]
might sound silly, but try
s% = 1 to shipammount%



ChrML(Posted 2003) [#3]
Sure you at all draw the code, and not just loading it?


elseano(Posted 2003) [#4]
ChrML, what do you mean?


Jeroen(Posted 2003) [#5]
what about:

renderWorld
updateWorld
flip

etc...

you're not drawing anything, just loading.