Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Edwin Xie on Fri 26/11/2004 01:37:28

Title: Transparent.......
Post by: Edwin Xie on Fri 26/11/2004 01:37:28
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.
Title: Re: Transparent.......
Post by: strazer on Fri 26/11/2004 03:22:29
I don't know what you mean by "upper" bubble, but maybe this template (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14739.msg180283#msg180283) will help you.
Title: Re: Transparent.......
Post by: Edwin Xie on Fri 26/11/2004 03:39:14
I mean this kind of thought bubble:(http://www.2dadventure.com/ags/bubble.JPG)
Title: Re: Transparent.......
Post by: Hollister Man on Sat 27/11/2004 00:32:54
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.
Title: Re: Transparent.......
Post by: strazer on Sat 27/11/2004 00:38:55
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.
Title: Re: Transparent.......
Post by: 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'.
Title: Re: Transparent.......
Post by: strazer on Sat 27/11/2004 01:26:52
Heh, well, here's my modification of the demo (http://www.strazer.net/ags/demo_bubble.zip) anyway :) (requires AGS v2.62 or higher).
Title: Re: Transparent.......
Post by: Edwin Xie on Sat 27/11/2004 20:46:47
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.
Title: Re: Transparent.......
Post by: monkey0506 on Sat 27/11/2004 21:35:26
A rectangular circle? I'd like to see that...
Title: Re: Transparent.......
Post by: Edwin Xie on Sat 27/11/2004 21:42:52
A rounded rectangle. Whatever. (http://www.2dadventure.com/ags/rectangularcircle.JPG)
Title: Re: Transparent.......
Post by: Ashen on Sun 28/11/2004 02:02:58
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.
Title: Re: Transparent.......
Post by: Edwin Xie on Thu 02/12/2004 06:47:59
I know, but, how?