Transparent.......

Started by Edwin Xie, Fri 26/11/2004 01:37:28

Previous topic - Next topic

Edwin Xie

I know this is more like a newb question, but still, how you you create transparent places on a GUI? This can be useful for creating thought bubbles. But here is the challenge, I want the transparency to be surrounding the circular bubble, and I want the test to be in the upper bubble. Let me know if you need a diagram.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

strazer

I don't know what you mean by "upper" bubble, but maybe this template will help you.

Edwin Xie

I mean this kind of thought bubble:
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

Hollister Man

You need to set the background color of the GUI to 'Transparent' (Palette Index 0) and your picture should have the Magic Color as the background.
That's like looking through a microscope at a bacterial culture and seeing a THOUSAND DANCING HAMSTERS!

Your whole planet is gonna blow up!  Your whole DAMN planet...

strazer

Yeah, but that won't display the text in the upper bubble and the bubble won't resize for different amounts of text.

If not quite sure how to accomplish this. You could try to write a custom thought function that displays a second GUI or overlay underneath containing the lower bubbles.

Ashen

Or (as some crazy genius suggested in the thread strazer linked before) you could add the lower bubbles to the sprites in the character's 'Thinking View'.
I know what you're thinking ... Don't think that.

strazer

Heh, well, here's my modification of the demo anyway :) (requires AGS v2.62 or higher).

Edwin Xie

#7
Quote from: Ashen on Sat 27/11/2004 01:08:14
Or (as some crazy genius suggested in the thread strazer linked before) you could add the lower bubbles to the sprites in the character's 'Thinking View'.

Heh, that is what I thought I'm going to do. Wierd that you call yourself a crazy genuis, Ashen.


Anyway, I want the bubble to be oval-like, and not a rectangular circle, and I believe that I am now having trouble with the art.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

monkey0506

A rectangular circle? I'd like to see that...

Edwin Xie

A rounded rectangle. Whatever.
Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

Ashen

QuoteWierd that you call yourself a crazy genuis, Ashen.
What? I fail to see how it doesn't apply, and I have psychologists notes to back me up on both points.....
Anyway, I think what you have to do is alter the graphics used for the 'sides' of the bubble. The demo version stazer gave just used a striaght line graphic (sprites 7 & 9 to be exact), but you could use whatever you want (which I think was also mentioned in the other thread). It's a little difficult to make it look right, since AGS just crops/repeats the graphic to stretch it to the right length, but it's do-able with a little effort.
I know what you're thinking ... Don't think that.

Edwin Xie

Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

SMF spam blocked by CleanTalk