K00lman
Member
I am trying to make a clicker upgrade system that will loop through all actives upgrades and then print their upgrade text on them with this code:
For some reason, this code never runs as when I check via the debugger it says that the upgrade variable is "Unable to evaluate". What am I doing wrong?
GML:
for (var upgrade = 1; upgrade == array_length(upgrades); upgrades += 1){
draw_text(upgrades[upgrade].x, upgrades[upgrade].y, upgrades[upgrade].name_text);
}