The Dink Network

Reply to Re: Malachi the Jerk

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:
 
 
November 16th 2013, 11:59 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
I think you have your numbers reversed. set_frame_frame starts with two numbers saying which sequence and frame are going to be changed, followed by two numbers saying where they're copied from.

So your code will set the 100 graphics to things you have loaded into 25 beforehand. If you didn't load anything into 25, I think these statements will be ignored.

Another thing you have to watch out for is the way allocation works. The first time a sequence number is used with load_sequence (_now or not), its frames are allocated. This means that if you want more frames than there are graphics for, you need to use set_frame_frame before loading the graphics.

For the same reason, the sword graphic is loaded into dink only to be replaced with the fist sequence; the fist has fewer frames, so if that was loaded first, it would be impossible to replace it with the sword later: they wouldn't fit in the allocated space.