Layering non-guis over guis?

Started by FortressCaulfield, Fri 30/05/2025 16:17:28

Previous topic - Next topic

FortressCaulfield

Is there a way to get room objects or chars to show over-top of guis, short of making them into other guis or buttons on the same gui?

I'm using an object to animate my character's hand pushing buttons on several screens but one of them uses gui buttons for health bars (essentially) and they show over top of the hand.
"I can hear you! My ears do more than excrete toxic mucus, you know!"

-Hall of Heroes Docent, Accrual Twist of Fate

Crimson Wizard

#1
Only screen Overlays may be layered above GUIs. Overall room objects are always on their own layer and screen (ui) objects are on their own, they never mix.

The solution may vary depending on a situation. I could not completely understand what your case is, but in general, if you need something displayed over a gui, then the two obvious choices are:
1. Buttons can display any graphic and have Animate command. It may be button on the same gui, or a different gui made just for this button.
2. A screen Overlay (but if you need to animate that, then it has to be animated by changing its image frame by frame in script).

EDIT:
Of course there's a opposite solution: don't use GUIs representing something that a character's hand may interact with, and use room object or room overlay instead.

Rik_Vargard

#2
Quote from: Crimson Wizard on Fri 30/05/2025 17:30:392. A screen Overlay (but if you need to animate that, then it has to be animated by changing its image frame by frame in script).

I needed to create an animated rain overlay. So what I did is create an object that's full screen (for me it was 1280*720) .
I made sure the baseline puts that object in front of everything .

Crimson Wizard

Quote from: Rik_Vargard on Fri 30/05/2025 22:53:55I needed to create an animated rain overlay. So what I did is create an object that's full screen (for me it was 1280*720) .
I made sure the baseline puts that object in front of everything .

I was refering to a case when you need to display something above GUI, since that's what a OP asked. Room objects cannot be displayed above GUI.

Crimson Wizard

#4
After re-reading the question and trying to guess what the scene looks like, I think the more natural solution is to go opposite direction and don't use GUIs representing something that a character's hand may interact with, and use room object or room overlay instead. These may too display health bars, although it may be bit more work than with buttons (i don't see the picture so can only guess how it's made now...)

SMF spam blocked by CleanTalk