View Single Post
Obi1mcd Obi1mcd's Avatar

JCF Member

Joined: Feb 2010

Posts: 692

Obi1mcd is OFF DA CHARTObi1mcd is OFF DA CHARTObi1mcd is OFF DA CHART

Jul 18, 2015, 03:38 PM
Obi1mcd is offline
Reply With Quote
Quote:
Originally Posted by Sir Ementaler View Post
What I did was change the palette cycling code in onMain to
Code:
	if (jjGameTicks % 2 == 1) {
		cycleLiquid();
		//rocksGlow();
		if (jjGameTicks % 4 == 1) {
			crystalGlow();
			liquidPoolRipple();
			crystalRipple();
			cloudsGlow();
			if (jjGameTicks % 8 == 1) {
				liquidPoolGlow();
			}
		}
		jjPalette.apply();
	}
and replace all occurrences of "newPal.apply()" with "jjPalette = newPal". Not precisely the way I'd write that code myself but that required fewest modifications.
Ah cool! Could definitely tell I'd done something wrong there, but wasn't sure what to change. Thanks for fixing it!
__________________
Define 'normal'.