visible on/off issue!!!!!! please advice me..

fox2fox2 Member Posts: 67
edited August 2013 in Working with GS (Mac)
Hi! GS developers~~~

Today i found one problem during my working!

I made rule like this....

If actor2 is overlaps or colides to actor1

then (change attribute)actor2's visible is false.

I want to make to visible "on/off" use the "true/false"

But.... there is no change.

Anyone who knows this issue?

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited August 2013
    Try changing the self.color.alpha to 0 instead or destroy the actor if you don't to make it visible again
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited August 2013

    Hi @fox2

    As @KevinCross suggested, but as I wrote an answer half an hour ago, then my rubbish ISP decided to go offline...yet again... I'll still post it... :-)

    -------

    There are a few attributes in GS that can't be changed at runtime (even though they can be accessed via the attribute browser) ... and Visible is one of those.

    So you could do a couple of three things, when you want the actor invisible, change its Alpha to 0, move the actor off-screen, or even (a bit drastic though) replace it with an actor that has Alpha as zero. Hope that helps. :-)
  • SingleSparqSingleSparq Member Posts: 1,339
    I think I remember it said that you can change the visible attribute in the new nightly build (would have to check) but if your not pro it doesn't help you.
  • fox2fox2 Member Posts: 67
    edited August 2013
    Thanks for the kindly comment.
    I was reworking to use alpha instead of visible attribute.
    I just wondering for what kind of attribute can't be changed at runtime.like visible attribute.
Sign In or Register to comment.