Copy and Pasting in Hopscotch

#1

Hello I am new to Hopscotch. I want to create a game and to do this I must utilize the copy and paste feature in hopscotch. However, it only lets me select one block instead of a string. I am trying to make a game that requires modifying that string, so I cannot create a folder thing because I am changing it (think of it as variations).

Is there a solution for this or do I have to manually reenter all of the code?

13 Likes
#2

Welcome to the forum!

1 Like
#3

Take the code you want to copy and put it in a custom block


Then put that block wherever you need the code (instead of typing it all over again)

4 Likes
#4

Welcome! You can use abilities as @LittleLilacDragon said

4 Likes
#5

Welcome to the forum!
You can’t currently copy and paste more than one block of code (unless it’s a whole rule, or the code inside a draw a trail/check once if/repeat/etc block, along with the block the code is in), but it’d be helpful!

4 Likes
#6

You can always put them in a string that supports multiple blocks inside it (like a custom ability or the “Repeat” block). Once you do that, you can copy and paste everything, then remove it from the string block.

1 Like
#7

You should do what Cocoa_Viola said. Put the code you want to copy in a ‘Check once if (7=7)’ block, then copy that block and paste it wherever. You can then edit that code, and not have it affect the other times you used that code.
By the way, welcome to the forum.

4 Likes
#8

It’s also really helpful if you put all of the code in a “Repeat times 1” block, and then you can just copy the repeat times 1 block and paste it and modify the code if needed and it won’t change in any of the other ones.

And btw, welcome to the forum. Tag me as @FearlessPhoenix if you need anything

4 Likes
#9

Welcome to the forum! Try the other solutions posted above and let us know if it works or not! And also, feel free to ask if you ever need any more help :slight_smile:

3 Likes