Here is some code I have for an object that is supposed to travel horizontally back and forth, and switch directions when it encounters a gray wall.
Here is the code I used:
And here is what happens:
As you can see, SOME of the red balls get out of sync from the rest. This boggles me, as they all have the exact same code. It seems to matter where each ball starts horizontally. If anyone has any feedback, PLEASE HELP! The game is https://flowlab.io/game/play/844156 if you would like to check the code. The object is called “Test green ball.”