I've been thinking about how to add cloning to Slither, and this is what I came up with: We would replace  with `clone = sprite.clone()`, and  with ``` python @sprite.whenIStartAsAClone def cloned(clone): # clone is the new clone of sprite pass ``` @Tymewalk, what do you think?
Activity
BookOwl commentedon Sep 13, 2016
How would we handle the events going in parallel?
BookOwl commentedon Sep 13, 2016
We could use
yieldto handle pausing the functions, which would turn this problem into running coroutines...If we decide to go that route, we could replace
slither.runMainLoop(framefunc)withand we could also add broadcasts very similarly.
[-]Cloning[/-][+]Cloning and other parallel scripts[/+]BookOwl commentedon Sep 13, 2016
After the v0.4.0 PRs get merged, I'll try making a branch that implements this idea. It would be a big, breaking change though.
Tymewalk commentedon Oct 30, 2016
(This project lives in the shadowy place between lots of activity and nothing. 😛)
@BookOwl Any chance that it would break older projects (not that there's very many of them)?