Reply to Spawn and external!
If you don't have an account, just leave the password field blank.
Gah, I want to spawn a script with a loop in it, getting a variable from the main script that is attached to a sprite without halting the main script. Word.
External() apparently halts the main script until kill_this_task() or something is run from the external script.
I want to pass a variable to the spawned script from the main script. Like this here external:
But the loop in rloop halts the main script so I want to liiiiikeee:
Maybe I'm too tired.
My guess is taking advantage of script_attach or something since that's what spawn is using.
External() apparently halts the main script until kill_this_task() or something is run from the external script.
I want to pass a variable to the spawned script from the main script. Like this here external:
void main (void) { int &sx = sp_x(¤t_sprite, -1); int &sy = sp_y(¤t_sprite, -1); external("rloop", "main", &sx, &sy); //&sx = &arg1, &sy = arg2 ...rest of script... }
But the loop in rloop halts the main script so I want to liiiiikeee:
spawn("rloop", "main", &sx, &sy); //&sx = &arg1, &sy = arg2
Maybe I'm too tired.
