Thanks for the help,
Mentor.
Well, I thought about the 2D array, but it was in my second attempt. As you can see, it's only 8*24 plateforms. It's the minimum I could get. So I was planning that when some get out of sight, the are simply moved to the next visible section.
But now there is a new problem
Well now it looks lik this :
LOAD OBJECT "levels/1/plate.x", 1000
MAKE MESH FROM OBJECT 1000,1000
FOR x = 1 TO 48
FOR y = 1 TO 24
plateformes# = 1000 + x * 24 + y
MAKE OBJECT plateformes#,1000,0
COLOR OBJECT plateformes#,RGB(i*10,100,200)
YROTATE OBJECT plateformes#, wrapvalue(y*15)
POSITION OBJECT plateformes#,0,x*1.5,0
NEXT y
NEXT x
DO
SYNC
LOOP
It tells that the object does not exist on line 74 (which refers to "
LOOP")
(It makes no sense to me)
I must admit that I threw a bit part of my code away to get it simple on the forums.
But with this snippet, the same error occurs.
- Mind the gap -
