Revealing a hidden image help

Hi all, I have a hidden part in my game, but the only want I know how to reveal it is by creating actors, covering it and then destroying the actors by a timer. This seems like the worst way to do it. Is there a better way to make an image revealed piece by piece? Thanks

Answers

  • lycettebroslycettebros Member, PRO Posts: 1,598
    edited December 2012
    hmmm that sounds like the best way to me.
    You could build it into an animation of the actor but it would still need timer(s) to change the image. At least an animation could have custom shapes to the reveal.
  • mrchris317mrchris317 Member Posts: 78
    Ok thanks for the input lycettebros. My question then is, if I have a rule when touch is pressed, keyboard input comes up. However I want the actors revealing the image to pause. This way no more of the image is revealed while the player is typing. Any thoughts. Thanks
  • PixelMetalPixelMetal Member Posts: 283
    edited December 2012
    Make a global boolean attribute and have the actors in question check if it's true/false. If true, do the reveal. If false, don't do anything.

    If the action required to bring the keyboard up is pressed, change the attribute to false. When the input is done, switch it back to true.

    Or, make it an integer attribute and use the modulo operator to toggle between two values depending on keyboard input state.
  • mrchris317mrchris317 Member Posts: 78
    Thank you PixelMetal. I am understanding attributes a little better now, so I will try this. Thank you:)
Sign In or Register to comment.