The Dink Network

save_x save_y

July 20th 2003, 06:06 AM
fairy.gif
glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
can someone tell me what save_x and save_y is
July 20th 2003, 06:40 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
&save_x and &save_y are two global variables which are used in the game to store the x and y positions of sprites. For example, if you hit a chest, it would use those two variables to make sure whatever is inside to appear at the right location. If a monster dies, it uses these vars to create a reward on top of the monster:

//en-bonc.c
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
external("emake","medium");

Edit: someone fix that current sprite thingy!
July 20th 2003, 06:44 AM
fairy.gif
glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
thanks simeon i tought it was something with warping and stuff