The Dink Network

Reply to Re: save_x 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:
 
 
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!