Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Lufia on Sat 02/10/2010 15:02:44

Title: Sprites with alpha channels
Post by: Lufia on Sat 02/10/2010 15:02:44
So, here's a GUI background:
(http://i38.photobucket.com/albums/e112/gamefaqslufia/Misc/0dd29116.png)

Here's a button: (http://i38.photobucket.com/albums/e112/gamefaqslufia/Misc/fe0b378b.png)

And here's how it looks like in Photoshop and AGS:
(http://i38.photobucket.com/albums/e112/gamefaqslufia/Misc/95a8a697.png) (http://i38.photobucket.com/albums/e112/gamefaqslufia/Misc/ff6c4426.png)

I clicked on "use alpha channel" when I imported the sprites. Am I doing something wrong, or is this an engine limitation, or what?
Title: Re: Sprites with alpha channels
Post by: Matti on Sat 02/10/2010 15:20:36
There's always been a problem with alpha-channel GUIs on top of other GUIs. I don't know if there's a workaround or if the problem was even solved and I'm quite interested myself since I have to deal with that issue too..
Title: Re: Sprites with alpha channels
Post by: Lufia on Sat 02/10/2010 16:05:36
Well, damn. There's a "workaround", which is to put a black background in my button sprites. No transparency, no problem. But still, bleh. =/
Title: Re: Sprites with alpha channels
Post by: Buckethead on Sat 02/10/2010 18:14:52
You can also put the button on top as an extra gui but in this case your solution is probably better.
Title: Re: Sprites with alpha channels
Post by: Baron on Sun 03/10/2010 02:04:46
I've seen various threads (example (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=40851.0)) that purport to have solved this issue with using an alpha channeled GUI background.  Your background looks like it might have an alpha-channel, but it's hard to tell with the white border against the light blue background of the post.

     At any rate, I've also had no success in getting alpha-channel buttons to work on GUIs, so I'm afraid I can be of no further use.  I'd be very interested in seeing where we've been going wrong, though, since it does seem that some people have figured this out.
Title: Re: Sprites with alpha channels
Post by: Dualnames on Sun 03/10/2010 02:12:53
I've had some problems, but I think it all goes down that GUI buttons can't inherit alpha channel. I may be wrong now, but at least it couldn't be done 1 year ago.

Yeah, it's been a long time since I used that kinky stuff on a gui button. It probably misses my sweet coding.

Coming honey
Title: Re: Sprites with alpha channels
Post by: Baron on Tue 05/10/2010 01:42:44
Well, what's going on  here (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=34537.msg451374#msg451374), then?  It sure looks like they're playing around with alpha-channels on GUI buttons, but having said that it doesn't seem to work for me when I attempt to employ the methods described.  Can anyone definitively clarify where AGS sits in terms of alpha-channels on GUI buttons as of version 3.2?