I am making a matching app, and I am trying to match shapes here. The goal is to have the shapes randomly appear and drag them onto each other and match. My only issue seems to be that I do not want the shapes to overlap when they appear. Right now they do so, there is a near identical block to this one that basically resets the screen when you push a "try again" button. Everything else so far works perfectly, I just can't seem to get the shapes to appear where they're not on top of each other sometimes
Define a list of parking spots separate from each other.
Shuffle the parking spot list, then assign shapes into the shuffled list.
change the if...then... block to while ... test block
and what is inside shapes variable? I did not see any where to initialize it.
Here is a Drag and Drop sample you can study:
There were some blocks I couldn’t get in there, the while test worked perfectly! Everything is up and running, last question is with the while test, would I still need the if statement?? Or can I remove that with the while test there currently I have a while test then the if statement directly below it with the same code blocks in it.