In addition to swiping left and right to dodge obstacles, don't forget that you can sometimes jump over or duck under them too. If an obstacle is the same height as your Minion, try to jump over it (swipe up). If there's a gap between the obstacle and the ground, try ducking below it (swipe down).

It may take some practice to get the timing down, but ducking and jumping are extremely important skills to master.