I have array height 100 but there are just 67 elements filled, how to count it?
Develop games in your browser. Powerful, performant & highly capable.
As long as it does not contain 0 you could do this, variable 1 being your count.
Edit, if it contains strings do <> (does not contain).
sizcoz thx but it does not work for me
A better way would be looping in reverse.
For array.width-1 to 0 if array.at(loopindex) not equal 0 : set ArrayLength to loopindex : Stop loop
dop2000 Thank you