The Dink Network

Reply to Re: save_x and save_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 18th 2008, 04:41 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
I'm not sure using &current_sprite in the external script would work, but you can carry over variables from the original script to the external script if it doesn't. I think you can carry over up to 8 variables this way.

//for the main script
int &this_x = sp_x(&current_sprite,-1);
int &this_y = sp_y(&current_sprite,-1);
external("emake","small",&this_x,&this_y);

//for the emake.c script
int &save_x = &arg1;
int &save_y = &arg2;

Edit: After testing I see that &current_sprite does in fact work with external (just as sparrowhawk said) so just ignore this post