Stop All Code Block

One thing I would like to see in Hopscotch is a ‘stop all code’ block which stops all the code in that player’s code. So I would use this for all my games. What do you say?

  • Yes! :slight_smile:
  • No… :frowning:
  • Idk… :confused:
  • Whatever! :frowning:
  • Accident! :confused:

0 voters

11 Likes

1st post because I am the one who created it :confused:

4 Likes

But destroy exists…

4 Likes

First non creator post. Not stop all code

4 Likes

By the player’s code, you mean the object or the project?

3 Likes

maybe this? (but it only stops what moving I guess)

4 Likes

You could create that or have a button saying STOP?

1 Like

But if there was a button only you can say if it stops
If there was a block the project can do it.


And I realized destroy is different, it deletes the object

2 Likes

Yeah I thought that was why I was like hmmmmmm maybe not?

2 Likes

what’s the difference? if none of its code is running anymore, wouldn’t it be the same as deleting it?

2 Likes

Sbyp, a topic was made a few weeks ago, no?

1 Like

nice block idea!

if you link - I can merge all info together :))

2 Likes

No, if an object is ‘destroy’-ed then you can’t see it
If it stops all code, you can still see it
And you can maybe have a resume block too

1 Like

That would be useful for pause buttons, instead of doing “check once if ((pause) = (true))” for every object

1 Like

Yes but idk how to make a stop button

1 Like

The idea gives me confusion? Maybe explain it slightly better? Eh well but I’m always confused so ye

2 Likes

Ok. @noobcoder2000 it is just an idea to like a block to like stop every code in the project or player

1 Like

You can freeze the project by causing a JavaScript error. One example of this is trying to match a string with :)

Not like that is an official block though, which would be cool to see.

4 Likes

But still idk how

Literally this:

check if ( test matches :) )

unless they fixed it.

2 Likes