How to hide a specific clone from screen?

clones

#1

Hi all!
I am trying to create a simple game where the hero collects items to get points. My issue is that when I execute the code where my character bumps to a cloned item character, instead of deleting the cloned character (item), all the cloned items get deleted.

Can you help me?

Thank you,
P.


#2

I'm pretty sure this is impossible with clones, you would probably have to create abilities and different characters for each individual item, :neutral_face:


#3

This post was flagged by the community and is temporarily hidden.


#4


just kidding... its


#5

🤓 Hi, thanks for your comment. It would help me a lot if you can elaborate more on your comment.
Appreciated.
P.


#6

This post was flagged by the community and is temporarily hidden.


#7

Just use another character, then.


#8

Sorry, I am a noob!...let's say that I create a variable and increase it for every cloned object. When I check if my character bumped into one of the cloned objects, how do I check this? How do I get a reference which cloned object to hide?

Thank you for your time and help.
P.


#9

Sorry, I don't get what you mean.
P.


#10

https://c.gethopscotch.com/p/xojdrhw8r

You can check the code I did here.
An individual flame clone disappears when hit by a water drop.
Just study the code to learn how it's done

And you can thank @seawolfwerehorse for inviting me to the discussion.
You don't have to change a variable for each clone either.
The clones already occupy different y positions when they move.
I check the y position of the clone when it's touched by the water drop.
I won't explain any further. You can check the code.

@Phase_Studios you wanted to make a Bloons td game a while back but you were afraid of how difficult it would be to code for clones to be destroyed. If you look at the code at the link i placed you'll see it's not that hard to make individual clones disappear.


#11

Well, maybe @MagmaPOP could help, because the Minecraft Maker involves clones.


#12

Thank you, I shall try what you suggest. Happy new year!


#13

Happy new year to you as well