Question
Unable to clear the child (an angle) on the canvas before creating the next child (a new angle)
- June 23, 2023
- 1 reply
- 184 views
The aim of this application is to generate angles so that students can state what type (e.g. acute etc)
I can generated an angle, but I can't remove this angle so a new angle can be added. They just build up on top of each other.
I have uploaded the code.
I'm just wondering if anyone can perhaps help with this problem.
I've tried removeChild, and I think I am heading in the right direction, but just don't have it right.
Here is how I added the child to the stage.
stage.addChild(shape);
... and here is a link to see what is happening when I create the new question (i.e. press GO again).
https://mymathsroom.com/angles/
Thanks
