Help with Glass

Started by Danman, Tue 01/12/2009 11:34:58

Previous topic - Next topic

Danman

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.



suicidal pencil

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.

Danman

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  ::)



Matti

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).


Danman

#5
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)



Danman

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.  ::)



Khris

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
Code: ags
  oWindow1.Transparency = 50;

(Assuming that the object has the name "oWindow1".)

Danman

Alright thanks that worked.  ;D



SMF spam blocked by CleanTalk