Can anyone make a functioning restart button for my platformer game: Shadow Runner
Also, comment the code below so I can use it
PattanAhmed
@HenryMusic Hi,
Restarting a Python Script Within Itself by Petr Zemek.
Restarting a Python Script Within Itself by Petr Zemek.
That's it
Thanks!
Hope this helps
Coder100
that's python not HTML
@PattanAhmedCoder100
hm true ig
@PattanAhmedPattanAhmed
@Coder100 I guessed it as Python...
Maybe you are True.
Who knows
Maybe you are True.
Who knows
Quarreling on this regard is something called MAD
LoL!
Coder100
Well you should comment your code
HenryMusic
@Coder100 it is html and script.js
Coder100
ok, do location.reload()
Generally for all languages, I would expect for you to put each section of your game into a function and have that function started for a restart button.
I can clarify this more if you tell me what language you are using and/or the repl.