The Dink Network

Reply to Re: Current Sprite

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:
 
 
January 15th 2006, 02:23 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
I think you could look at the rudiments of scripting, it's said to be good.

about your script:
I'd do it like this:
int &csx = sp_x(&current_sprite,-1);
int &csy = sp_y(&current_sprite,-1);
&csx += 10;
&csy += 10;
int &newhole = create_sprite(&csx,&csy,0,sprite seq,sprite frame);

(I don't know the sprite's sequence, nor the sprite's frame, so I haven't put any numbers on their places...)