I’m actually going to be looking into doing something similar with this. Although, with an added twist and I challenge you all to see if you can do it (Honestly have no idea if I can achieve it, lol)
The idea is this, basically take what you all are attempting to do. However, the moon won’t simply orbit “opposite” of the sun to only appear at night. Instead, it will be calculated for proper moon cycles. Meaning it can occasionally make an appearance during the day, and have cresting, as well.
What makes it complicated is you can’t simply have it’s speed on a 30/1 ratio with the sun because that won’t account for the Earth’s rotation. My thoughts are to determine 3 states; shows during day, night or not at all. Once you determine those 3 states, you can then just pan it through the sky at the proper time and hide it during all other times.
It sounds much easier than it actually will be, I’m sure
If I manage to pull this off, I’ll be sure to post back here showing how its done. Forewarning, it might be awhile as it is far down on my todo list.