I know there is a similar question: Smooth fly movement like flappy bird or jet pack joy ride with gravity and Accelaration
But I don't understand how to check if isFlapping is true and to use this information to start the flight of the bird...
Because here:
dY += gravity + flapping;
y += dY;
bird.setY(y);
the flapping action will be used all the time but not only when the user touches the screen. Please help