Alternating Pause Screen
captainofthecoolkids
Member Posts: 3
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 !!!!
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
If attribute you created above = 1
Change image to random1
If attribute you created above = 2
Change image to random2
etc etc
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
MH