Use the arrow keys to interact with the player. This game shows a rotational gravity for a player sprite and "orbit" for a moon and sun sprite around a planet sprite. You can enter turbo mode (Shift Click) for time lapse orbit.
You can find how to create this type of gravity and others on http://wiki.scratch.mit.edu/wiki/Simulating_Gravity