This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Sun, Earth, and Code Forum

View Course » View Exercise

150 points
0c5bd51463bf8c59bc3815f7509ed031?s=140&d=retro
Submitted by
lstaples
over 3 years ago

Opposing Orbits?

I would like to edit my animation so that two objects are opposing each other, but still orbit at the same speed around the "sun." Is there a way to make it so that one "earth" starts at a different position than the other "earth?"


0 votes

permalink

Yes, I think that putting two images, one with the id of earth_1 and the other with the id of earth_2 and then starting them off at their own location would do it.

2818 points
5674c6dae39efec455000434_879409444
Submitted by
Zeke Y
almost 3 years ago