Palette Change, On The Fly question...
#1
Posted 23 February 2004 - 03:33 PM
#2
Posted 23 February 2004 - 03:48 PM
I just don't know how. I think I read something similar in Saxman's hacking notes.
#3
Posted 23 February 2004 - 04:02 PM
I've just noticed that changing the first row of any palette changes it for all the palettes! DAMN YOU SONIC 2 ENGINE!
That said, how do I:
a) change row 1 of the palette right after DEZ's title card disappears
b) change it back right before Silver Sonic explodes?
help would be appreciated
#4
Posted 23 February 2004 - 05:12 PM
Quote
You'll need to tag a little bit onto the title card object to check whether the level is DEZ or not and do a quick branch to a little code you wrote yourself which writes something different to the CRAM ($400000 IIRC).
Something like...
CMPI.B #0E,[offset in RAM for level value]
BEQ.S CustomCode
[...]
CustomCode:
LEA $400000,A0
MOVE.L [palette change],(A0)
[repeat as appropriate until however much palette is changed]
RTS
Quote
Same deal as above, just change the label and what you load to the CRAM and tag it onto the Silver Sonic object right before its RTS command.
#5
Posted 23 February 2004 - 05:19 PM
still, good answer.
oh and... there's a title card object? So I could put one in the middle of a level? Weird...
#6
Posted 23 February 2004 - 05:29 PM
bobxp, on Feb 24 2004, 01:19 AM, said:
still, good answer.
oh and... there's a title card object? So I could put one in the middle of a level? Weird...
ESE should be able to edit all the palettes. I may be wrong.
#7
Posted 23 February 2004 - 05:57 PM
Quote
b) change it back right before Silver Sonic explodes?
Plain Sonic 2 doesn't change the palettes at those moments in time - so why should there be a palette for me to change?
#8
Posted 23 February 2004 - 05:59 PM
bobxp, on Feb 23 2004, 08:57 PM, said:
Quote
b) change it back right before Silver Sonic explodes?
Plain Sonic 2 doesn't change the palettes at those moments in time - so why should there be a palette for me to change?
There are certain object tags that are used to change the pallet. I believe one is used in WFZ. Try putting that object in DEZ.
#9
Posted 23 February 2004 - 06:15 PM
Rika Chou, on Feb 23 2004, 10:59 PM, said:
If memory serves me correctly that object only affects a certain palette and in a certain way. For whatever change Bob needs he'll need to change the object to his own requirements.
#10
Posted 23 February 2004 - 06:16 PM
Rika Chou, on Feb 23 2004, 10:59 PM, said:
Em... which object? :huh:
#11
Posted 23 February 2004 - 06:37 PM
bobxp, on Feb 24 2004, 02:16 AM, said:
Rika Chou, on Feb 23 2004, 10:59 PM, said:
Em... which object? :huh:
Go to the archives forum. Look for the WFZ thread
#12
Posted 23 February 2004 - 06:44 PM

