The Dink Network

Reply to Pushing and hardness.

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 10th 2006, 05:16 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
This is the script:

void main( void )
{
sp_speed(&current_sprite, 1);
int &mydir;

if(&stonem == 1)
{
sp_x(&current_sprite, 344);
}
}

if(&stonem == 2)
{
sp_x(&current_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(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
Playsound(59,11025,0,0,0);
move_stop(&current_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(&current_sprite, -1);
&save_y = sp_y(&current_sprite, -1);
Playsound(59,11025,0,0,0);
move_stop(&current_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.