Translucent Actor

crapscraps Member Posts: 353
edited November -1 in Working with GS (Mac)
I am having a little trouble on how to make a translucent actor.
Would like to have an actor that will allow the background to be seen through it.

Comments

  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    Go to actor attributes. In the color section you will see an "Alpha" attribute. That sets the transparency of an actor where 0 is completely transparent and 1 is completely visible.

    ________________________________
    【ツ】iPhone Icon Pack【ツ】
    Free high score demo here (simple) and here (advanced)
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    Or you can set the transparency while designing the image in your favorite graphic app.

    ________________________________
    【ツ】iPhone Icon Pack【ツ】
    Free high score demo here (simple) and here (advanced)
  • touchtentouchten Member Posts: 96
    argghh somebody answered before me.. hahahhaa

    ( I was prowling around the forum, waiting to be able to answer a question, and this was my chance, because the rest was too hard to answer haha)

    Is it also advisable to go to actor attributes, and "Graphics" and then uncheck the "visible" ?

    does it work out the same with giving an Alpha as 0?

    cheers

    Anton
  • MarkOnTheIronMarkOnTheIron Member Posts: 1,447
    If Alpha is set to 0 the engine will treat the graphic as if it was visible, sucking some precious RAM and fps, but the plus is that you can change the visibility during gameplay.

    On the other hand if you set Visibility to false it wont load the RAM and will see some more fps but you won't be able to change it during gameplay.

    ________________________________
    【ツ】iPhone Icon Pack【ツ】
    Free high score demo here (simple) and here (advanced)
  • crapscraps Member Posts: 353
    WOW
    I thought alpha was on or off with zero or one. Decimals... Thanks.
  • JeffreyShimaneJeffreyShimane Member Posts: 372
    For the decimally-challenged, there's also a handy opacity slider (0-100%) when you open an actor and click on the color attribute.
  • crapscraps Member Posts: 353
    Okay that is solved my other problem is half fixed.

    ACTOR A
    touched - inside
    Change Att game.book to 1
    interpolate to alpha 1
    if game.cart = 1
    interpolate to (screen x,y)

    CART ACTOR
    touch - inside
    if game.book = 1
    change att to game.cart = 1

    touch - inside
    if game.switch = 1
    change att to game.cart = 2

    ACTOR B
    touched - inside
    Change Att game.switch to 1
    interpolate to alpha 1
    if game.cart = 2
    interpolate to (screen x,y)

    This only works for the actor 1 not number two?
Sign In or Register to comment.