The Dink Network

Reply to Re: scripting help needed

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:
 
 
May 12th 2007, 12:31 AM
goblinm.gif
Yeah, I did that with stars in VDC (I was inspired by the bone armor in Diablo 2.)

I did it the wrong way though. Here is the right way:

loophere:
int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 0;
&thisy += -40;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 10;
&thisy += -30;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 20;
&thisy += -20;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 30;
&thisy += -10;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 40;
&thisy += 0;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 30;
&thisy += 10;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 20;
&thisy += 20;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 10;
&thisy += 30;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += 0;
&thisy += 40;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += -10;
&thisy += 30;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += -20;
&thisy += 20;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += -30;
&thisy += 10;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += -40;
&thisy += 0;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += -30;
&thisy += -10;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += -20;
&thisy += -20;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

int &dinkx = sp_x(1, -1);
int &dinky = sp_y(1, -1);
int &thisx = &dinkx;
int &thisy = &dinky;

&thisx += -10;
&thisy += -30;
sp_x(&current_sprite, &thisx);
sp_y(&current_sprite, &thisy);

wait(50);

goto loophere;