Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Danman on Tue 01/12/2009 11:34:58

Title: Help with Glass
Post by: Danman on Tue 01/12/2009 11:34:58
Help trying to make glass with a background is this possible just to make it transparent
but with a glassy look.  ???
Thanks  :)

While I am asking how can I make a mirror for characters?
Not too sure if this is the correct place to ask this question.
Title: Re: Help with Glass
Post by: suicidal pencil on Tue 01/12/2009 12:02:42
I'm not 100% sure about what you're asking about glass.

And, you can make a mirror for characters, but I don't think it would be easy. You'd need to draw the mirror, and what it's reflecting in the background image. Then at run-time, create a drawing surface, and draw the player's current graphic on to it, wherever his reflection may be.
Title: Re: Help with Glass
Post by: Danman on Tue 01/12/2009 12:45:37
Quote from: suicidal pencil on Tue 01/12/2009 12:02:42
I'm not 100% sure about what you're asking about glass..
I am asking If i had 2 glass windows could I make a gray transparent look of the glass. Its
just to see through the glass a bit like layers one layer glass and one of the background with the character.  ???
I hope i make sense? I know I am bad at explaining things  ::)
Title: Re: Help with Glass
Post by: Matti on Tue 01/12/2009 12:55:52
If you make the glass an object, you can set the object.Transparency. Or, if you game is in 32-bit you can set the transparency in your graphics program (if it's capable of it).
Title: Re: Help with Glass
Post by: Jim Reed on Tue 01/12/2009 13:05:22
Mirror fx:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14370.0
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=39178.0
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=9750.0
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=7022.0
Title: Re: Help with Glass
Post by: Danman on Tue 01/12/2009 13:45:15
Quote from: Mr Matti on Tue 01/12/2009 12:55:52
If you make the glass an object, you can set the object.Transparency. Or, if you game is in 32-bit you can set the transparency in your graphics program (if it's capable of it).
OK Thanks makes sense now and thanks Jim Reed for the mirror fx help.
(I will try this tomorrow see how it goes  ;D)
Title: Re: Help with Glass
Post by: Danman on Wed 02/12/2009 08:46:23
Quote from: Mr Matti on Tue 01/12/2009 12:55:52
If you make the glass an object, you can set the object.Transparency. Or, if you game is in 32-bit you can set the transparency in your graphics program (if it's capable of it).
Sorry I am stuck How can i set transparency to an object??  ???  I just keep getting errors on ags.  ::)
Title: Re: Help with Glass
Post by: Khris on Wed 02/12/2009 09:51:25
If you didn't already, create the room's "Enters screen before fadein" event (see part3 of the helpfile's tutorial on how to add events).
In there, i.e. between { and }, put
  oWindow1.Transparency = 50;
(Assuming that the object has the name "oWindow1".)
Title: Re: Help with Glass
Post by: Danman on Wed 02/12/2009 19:56:03
Alright thanks that worked.  ;D