If you find a Pokemon hiding somewhere in the dream world
(e.g bushes,trees,water) it will want to play some sort of game with you.If you win this game,it will become happy and will be at the tree of dreams,where you can take it back to your game with you.However, if you fail, it will get upset and will not appear at the tree of dreams.