Why do seagulls up and fly away and then come back. They do this about every half hour.

seagull behaviour is complex. it could be related weather or atmospheric changes, presence of a particular predator  or relate to availability of a particular food source.