The Dink Network

Reply to Re: Hold

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:
 
 
October 3rd 2009, 05:33 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
The hold function? I don't think there is a hold function in Dink.

If you want a rock to be pushed out of the way permanently you'll have to use a global. Something like this:

void main(void)
{
  if (&story > 4)
  {
    sp_x(&current_sprite,500);
    draw_hard_map();
  }
}

void push(void)
{
  if (&story == 4)
  {
    int &ddir = sp_dir(1,-1);
    if (&ddir == 6)
    {
      freeze(1);
      sp_speed(&current_sprite,1);
      move_stop(&current_sprite,6,500,1);
      &story = 5;
      draw_hard_map();
      unfreeze(1);
    }
  }
}