The Dink Network

Reply to Re: Removing hardness forever

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:
 
 
July 25th 2010, 12:38 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
Grabbed a piece of code from Historical Hero where I made a sprite disappear and lose hardness. Note, this piece of code only does that:

  //remove sprite's hardness and sprite
  sp_hard(&current_sprite, 1);
  draw_hard_map(&current_sprite);
  sp_active(&current_sprite, 0);
  playsound(43, 22050, 0,0,0);
int &hold = sp_editor_num(&current_sprite);
  if (&hold != 0)
    {
     //this was placed by the editor, lets make it not come back
     editor_type(&hold, 1); 
    }