Transparency problem

Started by FredRosa, Fri 01/03/2013 18:01:55

Previous topic - Next topic

FredRosa

Hello,

Can someone help me with the following problem.
I want the legs of my character to become 50% transparent when in the back of the table glass.


Thanks.


Khris

Remove the glass from the background, then add it as Object and set its .Transparency to 50.

FredRosa


Khris

You're welcome :)

Also, you need to set the Object's baseline to a y coordinate in the area of the table's feet, so the object is properly display in front of / behind other objects and characters.

FredRosa

Well, since your hint I've been trying to put the object transparent and failed to do so... I'm starting to work with Script today.
I can only put him with a clickable or other kind of trigger and fade the object to the transparency I want. I used the code I found on the tutorial.
I can't make it just transparent from start. I bet that's really simple to do. :/

Slasher

In Room Load put this so the object is already transparent when Room fades in..

Code: AGS

oghost.Transparency=95; // object name is oghost. Transparency is set to 95 which is almost invisible.


Simply change oghost to your object's name and set its transparency. 0 means none 100 means total transparency.

If you want to Fade objects In/out check out the Tween Module.



FredRosa

I get this message Parse error: unexpected 'oVidros' - my object name. :/

FredRosa

Oh I've understood it now! Thank you! I'm going to be a regular on this beginner help forum... :)

SMF spam blocked by CleanTalk