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:45 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Magicman: sort of. The problem is draw_hard_sprite() only affects hardness on the sprite's current location, so to properly work, you'd need to have a lot of overhead:

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

// Remove current hardness
sp_hard(&current_sprite, 1);
draw_hard_sprite(&current_sprite);

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

if(&stonem == 2)
{
sp_x(&current_sprite, 435);
}

// Draw new hardness
sp_hard(&current_sprite, 0);
draw_hard_sprite(&current_sprite);
}