how many entity do you create?

Advanced game related topics
xenopsyx
User
User
Posts: 10
Joined: Wed Mar 01, 2006 3:10 pm

how many entity do you create?

Post by xenopsyx »

I am testing CreateEntity in mesh.pb edited with...

Code: Select all

For i = 0 To 99
  For j = 0 To 99
    CreateEntity(i*10+j, MeshID(0), MaterialID(Random(1)), i, Random(9)*0.1, j)
  Next
Next
Run the code, and there is no 100 entitys?
It's bug in purebasic?
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

there's 10000 loops.

10000 entities :

Code: Select all

For i = 0 To 99
  For j = 0 To 99
    CreateEntity(i*100+j, MeshID(0), MaterialID(Random(1)), i,Random(9)*0.1, j)
  Next
Next 
100 entities :

Code: Select all

For i = 0 To 99
    CreateEntity(i, MeshID(0), MaterialID(Random(1)), i,Random(9)*0.1, j)
Next 
or

Code: Select all

For i = 0 To 9
  For j = 0 To 9
    CreateEntity(i*10+j, MeshID(0), MaterialID(Random(1)), i,Random(9)*0.1, j)
  Next
Next 
xenopsyx
User
User
Posts: 10
Joined: Wed Mar 01, 2006 3:10 pm

oh~

Post by xenopsyx »

Thank you~!
I don't know why I did 99x99... :cry:
Post Reply