r/codehs • u/Mrtost1234 • Oct 01 '24
JavaScript Need help with a project
How do I do layers or move something back I have tried the cmd and it is not working I need the black box to be the back ground how can I do that with out haveing to restart and here is the code for the back ground to
5
Upvotes


2
u/Mrtost1234 Oct 01 '24
Oh had to change the background size to 100,100 to show you it was originally 500,500
1
u/Mrtost1234 Oct 01 '24
No all the other ones and diffrent they are called diffrent like rect1 rect2
1
u/Mrtost1234 Oct 02 '24
So is there a way to fix it
1
u/Mrtost1234 Oct 02 '24
Yeah I have called the function the main is at the bottom
1
u/[deleted] Oct 01 '24
What are you trying to accomplish in this project?
1
u/[deleted] Oct 01 '24
Is it because your letting Rect be a new rectangle more than once?