Switch from day to night palettes on jump

Gaet

New member
Hi guys,

I'm using the scrolling platformer module. What I'm trying to achieve is that on one specific screen, when the player jumps, the screen becomes dark/black (save for the character himself) and when he lands back on a platform the "lights" turn on again.

My current thinking is to create a group of 4 "night" background palettes and somehow switch from day to night when jumping. Perhaps by editing a_simple_jump.asm with something like:
WHEN jumping
IF screen type = XXX
THEN screen palette group = ZZZ
WHEN landing
IF screen type = XXX
THEN screen palette group = default

I assume it's obviously not that easy, but does something like that sound feasible and if so would someone be able to point me in the right direction?

Many thanks.
 
Top Bottom