since i don't frequent the GMC anymore or yoyogames i'd figure i ask here
why this no work   if (heal_step=0) {
      heal_number=-1;
      i=0;
      for (i=0;i>=6;i+=1) {
         if (slot[i+1,0]!=0) { // meaning in slot i, is there a species sitting there?
            heal_number+=1;
         } else { // if there isn't, end the loop
            i=6;
         }
         show_message("hey look at me i work");
      }
      heal_monitor=0;
      heal_ball_number=0;
      draw_heal_animation=true;
      heal_counter=30;
      show_message(string(heal_number));
   }
      for (i=0;i>=6;i+=1) {
         if (slot[i+1,0]!=0) { // meaning in slot i, is there a species sitting there?
            heal_number+=1;
         } else { // if there isn't, end the loop
            i=6;
         }
         show_message("hey look at me i work");
      }
I think this part:
for (i=0;i>=6;i+=1) {for (i=0;i<=6;i+=1) {thanks spike1! that worked like a charm! :) I knew there was a simple fix i couldn't see because i was stuck on tunnelvision! ahh man u saved me hours man.
imagine there's no heaven
Saw one of your other videos with the music, and it sounds amazing. I haven't kept up with your project at all, but I would play it when its closer to done
Are you running Game Maker on linux? You can do that now?
That's what I was thinking at first, but I remember trying to use it with wine and games not being able to run.
Then again, that was a very long time ago…Wow. That's pretty neat. I guess there's a new platform I can test it on now. :P
howdy! i noticed a couple other issues with your code
first, this is redundant:} else { // if there isn't, end the loop i=6; }if (slot[i+1,0]!=0) { // meaning in slot i, is there a species sitting there? heal_number+=1; } else { // if there isn't, end the loop break; }if (slot[i+1,0]!=0) { // meaning in slot i, is there a species sitting there? heal_number+=1; }Also put the curly braces on a new line after the statement conditions? … plz…
Alert, his way is the same as mine. It is an actual proper convention to do it EITHER of those ways, as long as you are consistent.
I prefer it because it means the if statement is the last thing before the indented line, and matches straight up to the closing brace. I find it easier to scan my eyes down this way. That and it saves on the number of lines you use, fit more on the screen.} else {