Reply to Re: sp_target() bug
If you don't have an account, just leave the password field blank.
13 is the sprite number as found in the editor, right? This is the sp_editor_num(##), or the "editor number". The sprite with "editor number" 1 will be the first sprite placed on the screen in the editor, not Dink. All script commands need "sprite numbers". Conversion is done with sp(##). Look at
int &crap = sp_editor_num(¤t_sprite);
int &trash = sp(&crap);
if (¤t_sprite == &trash)
{
say("Always says this if sprite is placed in the editor",¤t_sprite);
}
and:
int &crap = sp(13);
int &trash = sp_editor_num(&crap);
if (&trash == 13)
{
say("Always says this if sprite is placed in the editor",¤t_sprite);
}
int &crap = sp_editor_num(¤t_sprite);
int &trash = sp(&crap);
if (¤t_sprite == &trash)
{
say("Always says this if sprite is placed in the editor",¤t_sprite);
}
and:
int &crap = sp(13);
int &trash = sp_editor_num(&crap);
if (&trash == 13)
{
say("Always says this if sprite is placed in the editor",¤t_sprite);
}
