Language…
4 users online: Darolac, E623, Guido_Keller, krizeth - Guests: 237 - Bots: 277
Users: 64,795 (2,377 active)
Latest user: mathew

It's possible change broken yellow blocks' palette? (solved)

The broken pieces of "yellow turn blocks" works with the Mario/Luigi palette. Can I change that palette for another one? How?
Maybe use tweaker from the tools section?
Hi, I'm a signature!
Hack Thread
Hack Testing Status: Available.
Layout by Koopster.


The broken pieces aren't a standard sprite (they're a minor extended sprite), so Tweaker can't mess with them.

Instead, just apply this patch:
Code
!palette = $0C		; change this value to the palette you want


!effPal = !palette-8<<1		; don't modify the rest of this stuff

org $028B8C
	db !effPal|$00,!effPal|$00
	db !effPal|$80,!effPal|$80
	db !effPal|$80,!effPal|$C0
	db !effPal|$40,!effPal|$00


Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
@Konata Izumi

Thanks for your suggest. That tool (Tweaker) seems similar to "cfg_editor". Looks like interesting, but it don't help me with the broken pieces of blocks. Anyway, thanks for your time.


@Thomas

Thanks, your code works perfectly! :D

However, I'm afraid that I forgot another blocks' sprites that I need change its palette too:

The sprite when a "yellow block" is hit...


...and "? block" is hit.


Could you help me with these others sprites?
(Maybe, I could do it by myself if I would know that part of your code refers to the sprites)


Your help has been very useful. Many thanks.


Do you mean the actual bounce sprites? You can modify the palettes for all of those with this:

Code
!turnblock	=	$08	; tile 0x340 (turn block)
!noteblock	=	$09	; tile 0x46b (note block)
!questionblock	=	$08	; tile 0x32a (? block)
!sideblock	=	$08	; tile 0x342 (unused sidebounce blocks)
!glassblock	=	$08	; tile 0x4ea (transparent block)
!onoffblock	=	$0B	; tile 0x48a (on/off switch)
!ySwitchblock	=	$0A	; tile 0x340 (yellow ! block)
!gSwitchblock	=	$0D	; tile 0x340 (green ! block)


org $028789
	db !turnblock-8<<1
	db !noteblock-8<<1|$01
	db !questionblock-8<<1
	db !sideblock-8<<1
	db !glassblock-8<<1|$01
	db !onoffblock-8<<1|$01
	db $00
	db !ySwitchblock-8<<1
	db !gSwitchblock-8<<1


Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
@Thomas

That's great!
A lot of thanks for your time and help :)
As a tip, you should try out STEAR if you want to remap sprites for the next time. That way, you don't often have to rely on others.
@MarioFanGamer

Thank you for your suggest. I'll download this tool.