a) I tried to create an array of entity pointers, such as
n = 10
dim cube(n)
for i = 0 to i = n step 1
cube(i) = createCube()
next
but it does not work, why?
You syntax is wrong. Try:
n = 10 dim cube(n-1) for i = 0 to n-1 cube(i) = createCube() next
b) I created a mesh
man = LoadAnimMesh(" ..")
then I tried to use this entity as parent entity, something like
ball = createSphere(man)
but I get the error message " duplicate variable" referring to the entity man
Probably because the first argument of CreateSphere is the amount of segments you want, not the parent argument. Try:
ball = CreateSphere(8,man)
[edit] Ah, too slow. :P