Reply to Re: sp_custom
If you don't have an account, just leave the password field blank.
There is an upper bound to editor_frame and editor_seq values, and this is lower than the upper bound of "normal" variables.
Also, your code doesn't work. editor_frame and editor_seq (and editor_type too) need an "editor sprite number", not an "active sprite number". Fixed:
//example
int &crap = sp_x(¤t_sprite, -1);
&crap *= 1000;
int &crap2 = sp_y(¤t_sprite, -1);
&crap += &crap2;
int &me = sp_editor_num(¤t_sprite);
editor_frame(&me, &crap);
//main procedure
//extracting the x,y
int &me = sp_editor_num(¤t_sprite);
int &crap = editor_frame(&me, -1);
int &crap2 = &crap;
&crap /= 1000;
sp_x(¤t_sprite, &crap);
&crap *= 1000;
&crap2 -= &crap;
sp_y(¤t_sprite, &crap2);
//end of scripting
Also, your code doesn't work. editor_frame and editor_seq (and editor_type too) need an "editor sprite number", not an "active sprite number". Fixed:
//example
int &crap = sp_x(¤t_sprite, -1);
&crap *= 1000;
int &crap2 = sp_y(¤t_sprite, -1);
&crap += &crap2;
int &me = sp_editor_num(¤t_sprite);
editor_frame(&me, &crap);
//main procedure
//extracting the x,y
int &me = sp_editor_num(¤t_sprite);
int &crap = editor_frame(&me, -1);
int &crap2 = &crap;
&crap /= 1000;
sp_x(¤t_sprite, &crap);
&crap *= 1000;
&crap2 -= &crap;
sp_y(¤t_sprite, &crap2);
//end of scripting