Reply to Re: Global variables
If you don't have an account, just leave the password field blank.
Gyah! An error in the DinkC reference? Could it be?
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
{
this was placed by the editor, lets make the barrel stay flat
editor_type(¤t_sprite, 3);
editor_seq(¤t_sprite, 173);
editor_frame(¤t_sprite, 4);
type means show this seq/frame combo as background in the future
}
Notice Seth has editor_seq(¤t_sprite, #), i.e., the sprite number, and Redink (correctly) has editor_seq(&hold, #), i.e., the editor number.
Not that anyone cares...
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
{
this was placed by the editor, lets make the barrel stay flat
editor_type(¤t_sprite, 3);
editor_seq(¤t_sprite, 173);
editor_frame(¤t_sprite, 4);
type means show this seq/frame combo as background in the future
}
Notice Seth has editor_seq(¤t_sprite, #), i.e., the sprite number, and Redink (correctly) has editor_seq(&hold, #), i.e., the editor number.
Not that anyone cares...