Opacity question !

Martin14Martin14 Member Posts: 109
edited November -1 in Working with GS (Mac)
There any way to change the opacity of my player during the game, with some timmer or some attribute?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Sure thing; to change it immediately, put in a Change Attribute Behavior self.Color.Alpha to 0.5, or whatever you want. This could be triggered by a boolean attribute somewhere else in another actor, like
    When game.ChangeAlpha is true
    Change Attribute Behavior self.Color.Alpha to 0.5

    If you want it to fade-in or out to the required Alpha percentage over time, then use Interpolate instead of change attribute. This could also be triggered by a boolean "switch" as well, of course. Hope it helps. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • Martin14Martin14 Member Posts: 109
    thanks gyroscope !!!!
Sign In or Register to comment.