Countdown

MitchMan97MitchMan97 Member Posts: 51
edited November -1 in Working with GS (Mac)
hi i mad a countdown clock but i was wondering how i can make it then disappear and start the game?

Comments

  • svnsvn Member Posts: 445
    In the countdown clock, create a rule that tells it: When attribute"self.Graphics.visible" is True, put in a Pause Game Behavior. In the Otherwise section, put a rule: When attribute "self.Graphics.visible" is False, put in an Unpause Game behavior. And finally, in a third rule, tell it: When attribute "self.Countdown" equals 0, change attribute "self.Graphics.visible" to false, and (optionally) Destroy Actor.
  • MitchMan97MitchMan97 Member Posts: 51
    my only problem now is that i cant get the screen to pause
  • svnsvn Member Posts: 445
    Sorry, I don't know how to help there. Why don't you send a message to Tshirtbooth?
  • MitchMan97MitchMan97 Member Posts: 51
    nvrmind i figured it out i just delayed everything for three seconds with the timer
  • MitchMan97MitchMan97 Member Posts: 51
    oops just ran into a problem it works when i hit play but if i were to go the main menu then play again it doesnt show up?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You have to reset the value for the Attribute in your buttons to return to the menu.

    Also svn you cannot change game.graphics.visible on the fly. Only while editing the actor. If its visible ever you will have to do everything with self.color.alpha
  • svnsvn Member Posts: 445
    Oh. Oops.
  • MitchMan97MitchMan97 Member Posts: 51
    @tenrdrmer
    how do i do that?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    In your button add a change attribute behavior and set it back to what ever you want.
  • MitchMan97MitchMan97 Member Posts: 51
    it didnt work any other ideas?
Sign In or Register to comment.