Discuss Scratch

Eclipse2134
Scratcher
2 posts

Restart Buttons

Hello Everyone! I am trying to make a game with a restart button. After you die you are supposed to click R and it will bring you back to the start. However, this button is broken. Can you fix it for me?

LINK:
https://scratch.mit.edu/projects/396719155/

Thank you
theanonymousweirdo
Scratcher
500+ posts

Restart Buttons

Replace all of these
whenclicked
with this:
whenIreceiverestart
then replace your restart code with
whenrkeypressedbroadcastrestart
Then have this script:
whenclickedbroadcastrestart

Last edited by theanonymousweirdo (June 11, 2020 03:05:59)

aaaief
Scratcher
98 posts

Restart Buttons

First, delete all of
whenclicked

Scripts.
Then put there:
whenIreceiveRestart

If u use it, the game starts, when u restart. So, add
whenclickedbroadcastRestart

Then, Put a block for when should u restart.














My profile | My best project | My pfp maker

Last edited by aaaief (June 11, 2020 13:16:18)

aaaief
Scratcher
98 posts

Restart Buttons

theanonymousweirdo wrote:

Replace all of these
whenclicked
with this:
whenIreceiverestart
then replace your restart code with
whenrkeypressedbroadcastrestart
Then have this script:
whenclickedbroadcastrestart
Same














My profile | My best project | My pfp maker
Eclipse2134
Scratcher
2 posts

Restart Buttons

Ok Thank you
DatGamer6392
Scratcher
69 posts

Restart Buttons

aaaief wrote:

My profile | My best project | My pfp maker
Off topic but you should put this in your signature by going here.

Powered by DjangoBB