Reply to Re: New *WORKING* cross-platform editor
If you don't have an account, just leave the password field blank.
January 12th 2012, 02:45 PM
anon
i just tried to test in a simple way the while and for loops.
Either i don't know how to write them, or the preprocessor wrote it wrong.
About the while loop, i wrote (loop.c):
i assigned it to some sprite, pressed "P" in the editor to test, and when talking to the sprite, Dink just froze and nothing happened.
When using the build script to compile it into a dmod, loop.c turned into this:
About the for loop, i commented it in the first loop.c because when pressing "P" in the editor, it threw some errors.
Thanks
Either i don't know how to write them, or the preprocessor wrote it wrong.
About the while loop, i wrote (loop.c):
void talk() { int i = 0; freeze(1); while(i < 6) { say("i", current_sprite); wait(300); i += 1; } unfreeze(1); // int j; // for(j = 0; j < 6; j += 1) // { // say("j", current_sprite); // wait(300); // } }
i assigned it to some sprite, pressed "P" in the editor to test, and when talking to the sprite, Dink just froze and nothing happened.
When using the build script to compile it into a dmod, loop.c turned into this:
void talk (void) { int &m0i = 0; freeze(1); while0: if (&m0i < 6) { goto while1; } say("i", ¤t_sprite); wait(300); &m0i += 1; goto while0; last_textwhile1: unfreeze(1); }
About the for loop, i commented it in the first loop.c because when pressing "P" in the editor, it threw some errors.
Thanks