The Dink Network

Reply to Re: Need some help

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:
 
 
October 30th 2010, 09:31 AM
peasantfr.gif
I think this should solve it, not sure but think you need to make a loop back to forward to keep it continuing and for backward the same. Hope it works.


int &counter = 1;
forward:
sp_pframe(&sprite, &counter);
wait(100);
&counter += 1;
if (&counter == 11)
{
goto backward;
}
else
{
goto forward;
}

backward:
sp_pframe(&sprite, &counter);
wait(100);
&counter -= 1;
if (&counter == 1)
{
goto forward;
}
else
{
goto backward;
}