Retry Button only appears once .... oOOOhhhhww
Marc_n_Soph
Member Posts: 111
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
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
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!
Retry now works perfectly.
Thanks SO much, really appreciate your help!!!!
Marc n Soph
Welcome to the community!
Marc