The Dink Network

Reply to Re: 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, 06:38 PM
pig.gif
cheers magicman. This is realy doing my head in though, now when i press a button the arrow disapears. thanks. (for the record, heres the script).

void main (void)
{
draw_status();
freeze(1);
if(&tifany==1)
{
int &tifanytwo = Create_sprite(110, 290, 16, 227, 1);
}
if(&fight==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;
&yarrow = sp_y(&arrow, -1);
loop:
wait_for_button();
if (&result == 18)
&yarrow -= 20;
if (&result == 12)
&yarrow += 20;
if (&arrowy > 330)
&yarrow = 390;
if (&arrowy < 390)
&yarrow = 330;
sp_y(&arrow, &yarrow);
goto loop;
}
}