Reply to editor_type() - values 2 or 4 nuke attached script?
If you don't have an account, just leave the password field blank.
okay, getting my head twisted on this...
does changing a sprite (which has a script attached) placed via the editor on a screen to
editor_type(sprite, 2)
or
editor_type(sprite, 4)
in that script actually nuke the script attachment?
I know the background values of 3 and 5 probably do, since making a sprite a background one in the editor means no script works... I think.
But editor_type values 6 to 8 return the sprites (usually enemies) with their respective scripts attached.
Can work around this via the editor type 0 and storing the new image values I guess, then using sp_pseq() and sp_pframe() with retrieved values, and still keep the script attached but it seems a clunky workaround...
does changing a sprite (which has a script attached) placed via the editor on a screen to
editor_type(sprite, 2)
or
editor_type(sprite, 4)
in that script actually nuke the script attachment?
I know the background values of 3 and 5 probably do, since making a sprite a background one in the editor means no script works... I think.
But editor_type values 6 to 8 return the sprites (usually enemies) with their respective scripts attached.
Can work around this via the editor type 0 and storing the new image values I guess, then using sp_pseq() and sp_pframe() with retrieved values, and still keep the script attached but it seems a clunky workaround...