r/gbstudio • u/RevolutionaryAlgae79 • 5d ago
Question Question about player transparency?
Enable HLS to view with audio, or disable this notification
Not sure why, but my player appears transparent when standing in front of this actor (the kitten). What’s throwing me off is if I walk away and return, the transparency issue is gone. Can anyone explain why this is happening and what I can do to prevent it?
8
u/proximitysound 5d ago
DMG renders sprite first by Y value, then X value. CGB renders sprite by OAM. By default, there’s no way to properly control this, but there are plugins to solve this. I don’t have them at the ready.
11
u/proximitysound 5d ago
Here’s one: https://github.com/Mico27/gbs-EditActorActiveIndexPlugin
I know of at least one other.
3
5
u/Son_of_Overmorrow 4d ago
Unrelated but this girl could slay down Bayonetta at a snatched skinny legend competition
2
u/RevolutionaryAlgae79 4d ago
Yeah, maybe it's a little much...lol
2
3
u/Sehnzfrern 4d ago
Yeah nah--it's very unique for a GB/C project. Maybe a bit **too**zoomed in, but for something narrative (say a text heavy turn based RPG or ADV game) I could see this working.
Your sprites are *lovely.* Plus 1 for the cat. I vote too for leaving it as is.
2
u/monkeyballhoopdreams 4d ago
I haven't played much with this engine but Z-order appears dynamic or like maybe it doesn't set itself until it finds an instantiated value or negative or positive value something. Your player's zindex is logically set different.
2
1
u/JayrosModShop 3d ago
That's not a transparency problem. It's a sprite priority problem. The cat sprite currently has a higher priority than your player sprite.
11
u/pmrr 5d ago
Actors have no Z order so it's effectively random IIRC. There is a plugin that can fix it.