How do I create and move clones with Python in mBlock?


#1

Hi everyone.

I want to create clones in the python section of the Mblock 5 program and control the clones that are created. For example, when a character touches a cloned character, it should be deleted. Or a character should clone itself continuously. The clones that are created should move automatically. While I can do these things with block codes, I could not do them with python. There is no python code equivalent of the clone creation block code. How can I solve this problem? I need your help on this. Thank you.


#2

@bilisimhocam Some events don’t show their Python equivalents. They are actually based on JavaScript, not Python, but the code editor uses micropython and then compiles it to JS before running. There may not be a way to do this without blocks, but I’ll check and see what I can find out.