actor viewable boolean doesnt work

as7494as7494 Member Posts: 70
edited November -1 in Working with GS (Mac)
I have my actor and when Im trying to change its viewable tag, nothing happens even when using the self.graphics.visible to set it to 0, i cant get it to disappear from my scene

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    You change self. color. alpha to zero if your trying to make it invisible
  • as7494as7494 Member Posts: 70
    yes but then i would have to set the physics to 0 also correct?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    no the physics has nothing to do with the color. IF you mean you want it destroyed then instead of changing the color change its position offscreen
  • simo103simo103 Member, PRO Posts: 1,331
    I have a Try Again button I want to have show when a player fails to complete the level and wanted this to be touched to reset the scene. I used the Alpha set to zero to hide it and then to 1 to show and placed it in the middle of my scene. However that left a touchable yet transparent actor in the middle of my scene. So I had to wrap that touchable in a rule when alpha was 1.

    I have since seen a discussion where overlapping actors like this can effect performance so I am looking at interlopating the image into and out of the scene from an off screen position which is what John said but wanted to add my narrative in case it was of value to you.
  • as7494as7494 Member Posts: 70
    thanks a lot ill try that:)
Sign In or Register to comment.