types reversed

Blitz3D Forums/Blitz3D Beginners Area/types reversed

Bremer(Posted 2003) [#1]
Hi, I need to reverse the drawing order of a bunch of types. Is there an easy way I can have the types go in reverse then I do the for x.xxx = each xxx ???


Miracle(Posted 2003) [#2]
I think this'll work.

x.xxx = Last xxx
Repeat
;... do stuff ...
x.xxx = Before x
Until x = Null


Koriolis(Posted 2003) [#3]
Use a while instead of the Repeat, to make it work in the case where there's no instance of xxx.


Bremer(Posted 2003) [#4]
That worked like a charm, thanks!