The Dink Network

Reply to Re: dink x and y

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 23rd 2009, 01:46 PM
spike.gif
You can find his location by checking out the value of sp_x and sp_y.
int &dinkx = sp_x(1,-1);
int &dinky = sp_y(1,-1);
Then create the sprite at &dinkx and &dinky. -1 is a special value that returns what value an attribute has, it doesn't change it.