Do anyone know how to make a character randomly do that on the screen? Like a shooting game, some enemies will suddenly come out and then disappear after a while.

anyone has idea?