Retry Button only appears once .... oOOOhhhhww

Marc_n_SophMarc_n_Soph Member Posts: 111
edited November -1 in Working with GS (Mac)
Hi here I am once again. To plead for help. Again.

When my "biker" actor falls off, or when you run out of time, my "Retry" and "Quit" actors appear.

To do this, I have "retry" and "quit" buttons on my level with their opacity set to zero that interpolate their alpha to 1 when "crash" attib or "timeup" attrib is 1.
When retry is pressed, I have all the attribs relevant to scene changing to their original states, the "retry" button actor destroyed, then finally reset scene. When "Quit" is pressed, I have all attribs reset then change scene to title screen.

Took all this from a post from the incredibly helpful and all knowing tshirtbooth, but I have a problem.

When my actor crashes for the first time, or runs out of time for the first time, the retry and quit buttons appear, and work fine. When retry is pressed, you find yourself at the beginning of the level. However, when you crash or run out of time for the second time, you don't get the buttons.?!?!?!?!?!

Any help greatly appreciated, tryin so hard on our first game!!

Marc n Soph

Comments

  • chosenonestudioschosenonestudios Member Posts: 1,714
    Marc_n_Soph said:
    When retry is pressed, I have all the attribs relevant to scene changing to their original states, the "retry" button actor destroyed, then finally reset scene. When "Quit" is pressed, I have all attribs reset then change scene to title screen.

    When my actor crashes for the first time, or runs out of time for the first time, the retry and quit buttons appear, and work fine. When retry is pressed, you find yourself at the beginning of the level. However, when you crash or run out of time for the second time, you don't get the buttons.?!?!?!?!?!

    Because you deleted your retry actor............. :

    Instead when retry is pressed change self.color.alpha to 0

    when self.color.alpha = 0

    change retry to false

    when retry is true -> when touch is pressed -> reset scene

    Hope this helps, Good Luck!
  • Marc_n_SophMarc_n_Soph Member Posts: 111
    Awesome!! Thats sorted it! I just could NOT see where I had gone wrong!!
    Retry now works perfectly.

    Thanks SO much, really appreciate your help!!!!

    Marc n Soph
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Hey don't worry about it!

    Welcome to the community! :D
  • Marc_n_SophMarc_n_Soph Member Posts: 111
    Thanks. Iv'e just been playin doodle dodge through the safari plugin thing. If I cant beat my wife on my next go, Im gonna make her sleep in the shed again.

    Marc
Sign In or Register to comment.