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, 07:27 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
All the sequences? You mean all the frames?

If you need it to cycle frames, use a variable as a counter that counts up to the maximum number of frames. Then when it reaches the max, let it count back to 1 and repeat. Something like this for a sprite that has 15 frames:

int &counter = 1;
forward:
sp_pframe(&sprite, &counter);
wait(100);
&counter += 1;
if (&counter == 15)
goto backward;

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