Reply to Re: Hold
If you don't have an account, just leave the password field blank.
Have to? Unless the act of moving the rock is somehow important to other scripts, it's much neater to use editor_seq and/or editor_frame. Relatively simple and doesn't waste a global:
void main(void)
{
int &mahnum = sp_editor_num(¤t_sprite);
int &mahseq = editor_seq(&mahnum,-1)
if (&mahseq == 1)
{
sp_x(¤t_sprite,500);
draw_hard_map();
}
}
void push(void)
{
if (&mahseq == 0)
{
int &ddir = sp_dir(1,-1);
if (&ddir == 6)
{
freeze(1);
sp_speed(¤t_sprite,1);
move_stop(¤t_sprite,6,500,1);
editor_seq(&mahnum,1);
&mahseq = 1;
draw_hard_map();
unfreeze(1);
}
}
}
void main(void)
{
int &mahnum = sp_editor_num(¤t_sprite);
int &mahseq = editor_seq(&mahnum,-1)
if (&mahseq == 1)
{
sp_x(¤t_sprite,500);
draw_hard_map();
}
}
void push(void)
{
if (&mahseq == 0)
{
int &ddir = sp_dir(1,-1);
if (&ddir == 6)
{
freeze(1);
sp_speed(¤t_sprite,1);
move_stop(¤t_sprite,6,500,1);
editor_seq(&mahnum,1);
&mahseq = 1;
draw_hard_map();
unfreeze(1);
}
}
}








