Skip to content

Palette Setup #162

Answered by TrianglyRU
MarceloDPG asked this question in Q&A
Jun 23, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Palette swap the colours of the sky and lightning based on c_framework.frame_counter. Test Stage already does something similar:

if c_framework.frame_counter % 6 == 0
{
    pal_set_index([21], irandom_range(1, 3));
}

So, for example, if you allocate indexes 16 and 17 for sky and lightning colours, you can trigger them every 120th frame:

if c_framework.frame_counter % 120 == 0
{
    pal_set_index([16, 17], 1);
}
else
{
    pal_set_index([16, 17], 0);
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarceloDPG
Comment options

Answer selected by MarceloDPG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants