Alternating Pause Screen

captainofthecoolkidscaptainofthecoolkids Member Posts: 3
edited May 2012 in Working with GS (Mac)
Greetings!

Is it possible to have the pause screen alternate images each time a user presses pause on the game?

Please advise.

Happy Game Designing =) !!!!

Answers

  • EatingMyHatEatingMyHat Member Posts: 1,246
    yes. You can have the background image of the pause screen change based on a rule.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Yup create an attribute that on pressing the pause button changes to a random number. Then on the background image of the pause screen have a rule;

    If attribute you created above = 1
    Change image to random1

    If attribute you created above = 2
    Change image to random2

    etc etc
  • MotherHooseMotherHoose Member Posts: 2,456
    edited May 2012
    @captainofthecoolkids

    yes … but need to have the computer store the last image

    gameAttribute … lastImage … index type

    add your imageDisplay actor to the pause scene

    1st behavior in the that imageDisplayActor
    ChangeAttribute: game.lastImage To: game.lastImage+1
    Rule: when
    Attribute: game.lastImage = 1
    ChangeAttribute: self.Image To: the name of the correct image
    Otherwise:
    Rule: when
    Attribute: game.lastImage = 2
    ChangeAttribute: self.Image To: the name of the correct image
    Otherwise: continue the Rules for images

    on unPause actor
    Rule: when
    Event: touch is pressed
    ---Rule: when
    ---Attribute: game.lastImage = 6 (or whatever the maximum # of images you have)
    ---changeAttribute: game.lastImage To: 0
    -Unpause Game

    image MH
Sign In or Register to comment.