The Dink Network

Reply to Re: Pushing

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:
 
 
September 9th 2009, 12:29 PM
dinkdead.gif
You can use sp_dir() to find out which way Dink is facing. For example if you want the rock to be moved from left to right only:

void push (void)
{
  int &dir = sp_dir(1, -1);
  if (&dir == 6)
  {
    //move rock change hardness etc
  }
  else
    say("I can't move it...", 1);
}