Clones with global variables

A feature I’d like to see in Hopscotch is:

Global clone variables

I’d use it for this type of project:

Battle Royale games for example

Here are some examples of Hopscotch code that could be improved if we had this:

We could set position to a clone’s position

Here is an example design I’ve made:

Set (variable) to (Object (clone number(12)))

I’ve seen something similar in another programming languages, it looks like this:

I haven’t seen it but maybe it exists

Notes:
It would not replace the current variable system, it would just add a clone button somewhere.
(I really need it in my summer comp project because I’m just making 27 variables)

14 Likes

First non-creator post!
Like it!

6 Likes

This’d be good! I’ve been wanting this for a while!

3 Likes

So it’s using network multiplayer?

2 Likes

No it’s Battle Royale with AI playing.

2 Likes

O, just like Scratch block?

3 Likes

Scratch has that?

4 Likes

Cloud variables.

3 Likes

Not that but something where you can access a specific clone’s variable. (Now you can only access the original object’s variable)

3 Likes

Thanks for making this its own topic, I 82904742nd the idea.

4 Likes

Well, you kind of can do this.
Let’s say you have a pen iPad Variable called “Global X”. If you wanted to make an object go to the clone’s x, set “Global X” to the clone’s X (set Global X to self x position), then set the object’s x to Global X.

3 Likes

Now expand that to send 100 clones of one object to 100 clones of another without lag every frame.

5 Likes

yeah but when you want to give 27 clones 27 guns, like me now, it gets long having 27 Global X

4 Likes

I thought there was a topic for this already, else I would’ve made one ages ago lol

I really want to see this in Hopscotch!

5 Likes

It’s possible if you find it correctly, it might take some time, though.

2 Likes

This would be so helpful!

3 Likes

This’d be super helpful. Nice idea :))

6 Likes

Very good idea! I´m sure that this would make it easier for many people :smile:

3 Likes

Yes. It’s a feature called “cloud variables” where data is stored on the server. It can be used for high scores, game levels, and more.

3 Likes

This topic is not about cloud variables.
Yes, they would be good, but he is talking about accessing a clones information.
EG: Set Pos X ((Square(Clone62) + 5) Y ((Square(Clone 47) - 2)
This would be extremely helpful.

4 Likes