256 Colour Tutorial Part 2(V2.62): Difference between revisions
256 Colour Tutorial Part 2(V2.62) (view source)
Revision as of 02:37, 8 December 2005
, 8 December 2005→Palette cycling
Line 20: | Line 20: | ||
Now, how does this function work? Read the manual first: | Now, how does this function work? Read the manual first: | ||
<blockquote> | |||
'''CyclePalette'''<br> | |||
CyclePalette (int start, int end)<br><br> | |||
This is used for special effects, like the flowing colours on the Space Quest 4 title screen, and the Sierra logo of the later Sierra games.<br> | |||
The palette indexes from START to END are cycled around one slot.<br> | |||
Using this call in a repeatedly_execute function gives the effect of animation.<br><br> | |||
'''NOTE:''' This command only works in 256-colour games. | |||
</blockquote> | |||
(You may have noticed, that I omitted a paragraph from the manual text, which was about the colours cycling in both directions. I did that because there's a bug in AGS which prevents the colour cycling in backward direction to work properly, this bug is fixed in AGS V2.71.) | (You may have noticed, that I omitted a paragraph from the manual text, which was about the colours cycling in both directions. I did that because there's a bug in AGS which prevents the colour cycling in backward direction to work properly, this bug is fixed in AGS V2.71.) | ||