i try something like this
int enemycount = (lastenemy_slot - firstenemy_slot);
enemies enemy[enemycount];
and get an error -> Error (line 26): Array size must be constant value
but const int didnt work and readonly int is also no solution.
It's currently not possible. Unfortunately. You can use #define-s that are constant (you can't use expressions), enumerated values, or literal constants. You can't use any form of expression...
ok thx, this is not a big problem.
unfortunatly, a big problem is the limitation of 20 Overlays.
Related tracker entry. (http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=500)