The Dink Network

Reply to Re: The arrow keys

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 31st 2013, 03:16 PM
wizardg.gif
leprochaun
Peasant He/Him Japan bloop
Responsible for making things not look like ass 
You could just check which direction dink is facing.

void touch()
{
int &face = sp_dir(1, -1);

if(&face == 4)
{
//dink touched object from the right side
}

if(&face == 6)
{
//dink touched object from the left side
}

}