Forever loop won't work for 2 clones in a single sprite:
-
(CB1 is top button, CB2 is bottom one)
The second small “when I start as a clone” string is the only one that works, the first one doesn’t. I know that I added an "add clone with clone ID “CB1” otherwise the top button wouldn’t have appeared in the first place. Can you tell me what the problem is?
-
Looking at your code, 2 questions come up:
-
Are you sure those clones with clone ID of “CB1” and “CB2” are both created?
-
Since the code under “when I start as a clone” is all the same except the clone ID, why not use an “or” block to check both conditions?
-
-
@the_true_odst first, I’d recommend maybe using an if else, second, add a say to the start as clone block to verify tehy exist and where they are
-
@info-creaticode said in Forever loop won't work for 2 clones in a single sprite::
Are you sure those clones with clone ID of “CB1” and “CB2” are both created?
Yes, the top button is CB1, and the second button is CB2
-
@the_true_odst make it so if they touch it they say something or use print to console. This is how most programmers (allegedly people using languages other than JS dont do this but I still doubt that) debug stuff, you add a bunch of prints to ensure what is broken, like is it the touching detection or the cursor, you dont know becuase if one doesn’t work, the other won’t (if touching doesnt work then the cursor will never change, if the cursor changing doesnt work you wouldn’t know becuase the touching would be trying to use something that’s broken)