@dreamsmp_luck hope you’ll be alright !!
-
RE: Important - code being run as if there multiple copies of the sprites
OK. All clones come with a copy of the scripts. It is not clear what you are referring to. Can you make a simple example to illustrate like what I did? Thank you
-
RE: Important - code being run as if there multiple copies of the sprites
Not sure if we are talking about the same thing. This is an example of clones responding to messages even though there is no code for “when I start as a clone”:
It is shared here:
play.creaticode.com/projects/68c44068f8e2996ebfb5e1d0 -
RE: Important - code being run as if there multiple copies of the sprites
That’s not entirely true. When you broadcast a message, all clones would respond to that message.
-
RE: Important - code being run as if there multiple copies of the sprites
Thanks for the link. This is a fairly large project, and it is hard to say if the issue is in the system or in your code.
As you should already know, when you make a clone, its script is copied, so that’s expected. Are you seeing more than 2 clones when it should only generate 2 clones? For example, if you add a “print” block whenever a new clone is created, do you see many such print logs or just 2?
-
RE: Important - code being run as if there multiple copies of the sprites
Can you share the project URL?
And to clarify, is this the bug: When a new clone is created, more than 1 clone is created?
-
RE: Important - code being run as if there multiple copies of the sprites
Can you please try to confirm the issue? You can add some “print to console” blocks to confirm if there are indeed many copies of the sprites that are running.
If that’s confirmed, can you share the project link and a method to reproduce the issue? We will fix that ASAP.