I had some issues with appending scenes as prefabs, mainly with the actors' arcadeBody2D (Here's a gif). I emailed SparklinLabs about it and they replied with a solution (thanks!).
But in the solution, some code was taken out. Before It was like...
Sup.appendScene("CavemanPrefab", Sup.getActor("Cavemen"));
And this was the solution I got sent, which worked perfectly.
let caveman = Sup.appendScene("CavemanPrefab")[0];
caveman.arcadeBody2D.warpPosition(Sup.getActor("Cavemen").getLocalPosition());
However, I want to parent the appended Caveman actors to the Cavemen actor for collision reasons and stuff. But, when I do, the bug happens again, but not in the same way (here's a gif).
Here's what I tried:
let caveman = Sup.appendScene("CavemanPrefab", Sup.getActor("Cavemen"))[0];
caveman.arcadeBody2D.warpPosition(Sup.getActor("Cavemen").getLocalPosition());
let Caveman = Sup.appendScene("CavemanPrefab")[0];
Caveman.arcadeBody2D.warpPosition(Sup.getActor("Cavemen").getLocalPosition());
Caveman.setParent(Sup.getActor("Cavemen"));
What am I missing?