Hello.
I have a ViewController (Menu) that then switches to a UIView (Level_1).
When you die in the UIView (Level_1) it then switches to another UIView (Loss of life animation) and then switches back to Level_1.
Now the problem. I can't get into detail, but it is a major issue and it only happens when I switch back to the UIView (Level_1).
The only possible way to fix it would be to reset the UIView (Level_1) to its original state when you switch from Loss of life animation.
I have already tried resetting all the variables, but it doesn't help.
Is there a code to reset everything in a UIView?
Thanks!
I have a ViewController (Menu) that then switches to a UIView (Level_1).
When you die in the UIView (Level_1) it then switches to another UIView (Loss of life animation) and then switches back to Level_1.
Now the problem. I can't get into detail, but it is a major issue and it only happens when I switch back to the UIView (Level_1).
The only possible way to fix it would be to reset the UIView (Level_1) to its original state when you switch from Loss of life animation.
I have already tried resetting all the variables, but it doesn't help.
Is there a code to reset everything in a UIView?
Thanks!
Last edited: