The Dink Network

Reply to Re: 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:30 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Make the rock "not hard" in the editor, then

sp_hard(&current_sprite, 0);
draw_hard_sprite(&current_sprite);

after sp_x() has been changed.

Instead of using &stonem (which I assume is a global), you might want to learn the editor_seq/editor_frame trick, unless the state of the rock matters in other scripts, of course

LATE ADDITION:

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

if(&stonem == 1)
{
//that opened the if()
sp_x(&current_sprite, 344);
}
//that closed the if()
}
//that closed main()

You might want to check the brackets also.