Restart Button | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Restart Button

How do you make a Restart Button so when you die you just have too click it and it restarts and puts you back in the beginning! THANK YOU :)

25th Dec 2017, 12:53 AM
AClue
AClue - avatar
2 ответов
+ 5
in a case like this I would write an initialization function to set everything up. the restart button would refer to this function which would cause the defaults to be used again.
25th Dec 2017, 1:05 AM
Michael Simnitt
Michael Simnitt - avatar
+ 1
Okay I’ll try it out and tell you what happened Thank You!
25th Dec 2017, 1:07 AM
AClue
AClue - avatar