The Dink Network

Reply to Bah, humbug.

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:
 
 
June 4th 2005, 02:19 PM
pig.gif
I'm realy sorry about posting so much on this site, but, you know, i'm learning. . I've got a script that just wont do what its told, the arrow wont move up or down. its realy piddling me off.

void main (void)
{
draw_status();
freeze(1);
if(&tifany==1)
{
int &tifanytwo = Create_sprite(110, 290, 16, 227, 1);
}
if(&fight==1)
{
int &arrowposition = 1;
int &arrow = create_sprite(510, 350, 0, 192, 2);
int &saya = say_xy("Hitpoints, &life", 90, 340);
int &sayb = say_xy("Attack", 550, 330);
int &sayc = say_xy("Magic", 550, 350);
int &sayd = say_xy("Item", 550, 370);
int &saye = say_xy("Flee", 550, 390);
sp_kill(&saya, 0);
sp_kill(&sayb, 0);
sp_kill(&sayc, 0);
sp_kill(&sayd, 0);
sp_kill(&saye, 0);
int &controlbox = create_sprite(58, 341, 0, 192, 1);
sp_depth_que(&controlbox, 5);
int &arrowy;
loop:
wait_for_button();
&arrowy = sp_y(&arrow, -1);
if (&result == 18)
&arrowy -= 20;
if (&result == 12)
&arrowy += 20;
if (&arrowy > 330)
&arrowy = 390;
if (&arrowy < 390)
&arrowy = 330;
sp_y(&arrowy, &cury);
goto loop;
}
}
}

Thank you all so much, all this help is realy great, and it's realy appretiated. thanks