Reply to Pushing and hardness.
If you don't have an account, just leave the password field blank.
This is the script:
void main( void )
{
sp_speed(¤t_sprite, 1);
int &mydir;
if(&stonem == 1)
{
sp_x(¤t_sprite, 344);
}
}
if(&stonem == 2)
{
sp_x(¤t_sprite, 435);
}
}
void push( void )
{
if (&strength < 3)
{
say("This rock is loose, but I can't seem to push it!", 1);
}
}
if (&strength > 2)
{
&mydir = sp_dir(1, -1);
if (&stonem == 1)
{
//rock is over hole
if (&mydir == 6)
{
freeze(1);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
Playsound(59,11025,0,0,0);
move_stop(¤t_sprite, 6, 435, 1);
unfreeze(1);
draw_hard_map();
&stonem = 2;
return;
}
}
if (&stonem == 2)
{
//rock has already been pushed, can we push it back?
if (&mydir == 4)
{
freeze(1);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
Playsound(59,11025,0,0,0);
move_stop(¤t_sprite, 4, 343, 1);
unfreeze(1);
draw_hard_map();
&stonem = 1;
return;
}
}
}
}
And this is my problem: When I push the rock in direction 6, the rock gets his new hardness. But when I leave the screen, en re-enter the screen, the hardness of the old location of the rock is there, and the new rock-location has no hardness. How can I fix this?
hehe... rock... hard... hehehehe.
void main( void )
{
sp_speed(¤t_sprite, 1);
int &mydir;
if(&stonem == 1)
{
sp_x(¤t_sprite, 344);
}
}
if(&stonem == 2)
{
sp_x(¤t_sprite, 435);
}
}
void push( void )
{
if (&strength < 3)
{
say("This rock is loose, but I can't seem to push it!", 1);
}
}
if (&strength > 2)
{
&mydir = sp_dir(1, -1);
if (&stonem == 1)
{
//rock is over hole
if (&mydir == 6)
{
freeze(1);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
Playsound(59,11025,0,0,0);
move_stop(¤t_sprite, 6, 435, 1);
unfreeze(1);
draw_hard_map();
&stonem = 2;
return;
}
}
if (&stonem == 2)
{
//rock has already been pushed, can we push it back?
if (&mydir == 4)
{
freeze(1);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
Playsound(59,11025,0,0,0);
move_stop(¤t_sprite, 4, 343, 1);
unfreeze(1);
draw_hard_map();
&stonem = 1;
return;
}
}
}
}
And this is my problem: When I push the rock in direction 6, the rock gets his new hardness. But when I leave the screen, en re-enter the screen, the hardness of the old location of the rock is there, and the new rock-location has no hardness. How can I fix this?
hehe... rock... hard... hehehehe.