create with copyentity many entitys

Blitz3D Forums/Blitz3D Beginners Area/create with copyentity many entitys

Santiworld(Posted 2010) [#1]
hi, i want to know if this process is write correctly.

i'm trying to reduce the resources using copyentity when i load a new unit in my game...

type obj are my units in the game
type units are my Data base of units, with their propertys

in the game i used this code to create new units...

If unit\loaded = 0 Then
 unit\entidad = LoadAnimMesh(archivo$)
HideEntity unit\entidad
End If

obj\entidad = CopyEntity(unit\entidad)
ShowEntity obj\entidad
unit\loaded = 1 



is correctly? can i optimize more the resourses?

regards, santiago


Ross C(Posted 2010) [#2]
Copyentity is the most resource efficient way to duplicate your objects, IMO. Unless it's particles, in which case, a single surface system is the way to go :)


Santiworld(Posted 2010) [#3]
thanks Ross C.