I tried to compile
\documentclass{beamer}
\usepackage[english]{babel}
\newcounter{xxslide}
\begin{document}
\begin{frame}
\addtocounter{xxslide}{2}
\visible<\value{xxslide}>{blabla}
\end{frame}
\end{document}
But the compiler generated an infinite amount of slides. How can I control number of overlays while programming a slide?
The point is that I'm making a complicated drawing. During the presentation things need to appear and disappear. I want to make macro's that say: show blabla during 5 overlays of a slide. Now, we go to the next overlay. Show blabla for the next 3 overlays and so on ... When I switch to the next overlay, I want to increment a counter that expresses the number of the current overlay and then use \visible < xxslide, xxslide+5 > { blabla } commands.



\addtocountercontinuously adds 2 at each slide. Take the\addtocountercommand out of the frame and it works. – percusse Jul 1 '12 at 11:42\pause, or how do you determine what the next overlay is? – diabonas Jul 1 '12 at 14:00