I am working on a 3d racing game in which players can create there on tracks in the game. I am currently working on code that creates cubes, and these cubes will eventually be textured and used as the track pieces. Here is my code.
;;;;;;;;;
;;;;;;;;;;
For t= 1 to 10
track#=track#+1
track#=createcube()
next
positionentiy track#,0,1,10
;;;;;;;
;;;;;;;
How do code the for t=1 to 10 so that each track piece will be named in the for t code section? Meaning, I can position each track piece during game by calling it by its entity name (positionentity trackpiece,0,0,10)
;;;;;;;;;
;;;;;;;;;;
For t= 1 to 10
track#=track#+1
track#=createcube()
next
positionentiy track#,0,1,10
;;;;;;;
;;;;;;;
How do code the for t=1 to 10 so that each track piece will be named in the for t code section? Meaning, I can position each track piece during game by calling it by its entity name (positionentity trackpiece,0,0,10)