As Ross Millikan's answer states, you're looking for an $n \ge 1$ such that, for some integer $a$, you have
$$\begin{equation}\begin{aligned}
n(y+n-1)+x & = a^2 \\
n^2 + (y - 1)n + x & = a^2 \\
n^2 + (y - 1)n + x - a^2 & = 0
\end{aligned}\end{equation}\tag{1}\label{eq1A}$$
This is a quadratic equation in $n$. To get positive integral values for $n$ requires, at a minimum, the discriminant is a perfect square, say of $b$. This gives
$$\begin{equation}\begin{aligned}
(y-1)^2 - 4(x - a^2) & = b^2 \\
(y-1)^2 - 4x + 4a^2 & = b^2 \\
(y-1)^2 - 4x & = b^2 - (2a)^2 \\
(y-1)^2 - 4x & = (b - 2a)(b + 2a)
\end{aligned}\end{equation}\tag{2}\label{eq2A}$$
Call the left hand side value $c$, i.e.,
$$c = (y-1)^2 - 4x \tag{3}\label{eq3A}$$
Thus, you have for factors $f_1$ and $f_2$ of $c$ that
$$b - 2a = f_1 \tag{4}\label{eq4A}$$
$$b + 2a = f_2 \tag{5}\label{eq5A}$$
where $f_1 f_2 = c$. Solving these equations gives that \eqref{eq5A} minus \eqref{eq4A} has $4a = f_2 - f_1 \implies a = \frac{f_2 - f_1}{4}$. Also, adding the equations gives $2b = f_1 + f_2 \implies b = \frac{f_1 + f_2}{2}$. In particular, this shows that $f_2 - f_1$ must be a multiple of $4$, so you only need to check those factors.
The full quadratic formula equation for $n$ from \eqref{eq1A}, and using \eqref{eq2A}, is
$$n = \frac{1 - y \pm |b|}{2} \tag{6}\label{eq6A}$$
Since you are looking for positive solutions, you want to use only $n = \frac{1 - y + |b|}{2}$, and just the smallest one which is positive. Thus, you want to have the least value of $|b|$ which is greater than $y - 1$ and with the same parity.
This technique is most useful when $c$ in \eqref{eq3A} is relatively small, but with $y$ and $x$ potentially being quite large, since factoring can be a quite expensive operation for large values. For cases where $c$ is quite large, I don't know if there is any other way easier than perhaps just checking the next values until you get a perfect square.
Best Answer
Yes, there is. For, suppose you want counting from $k$ to $n$ (both odd numbers, included) consecutively. The sum of all numbers, even and odd, obviously is given by (please, see $S$ formula below) $$S_{k,n}=(k+n)\frac{n-k+1}{2}.$$ But we need to eliminate all of the even numbers between $k$ and $n$, i.e. from $k+1$ to $n-1$. It is also obvious that the quantity of even numbers is one less that the quantity of odd ones, that is, $x+x-1=2x-1=n-k+1$. Thus, the number of odd and even numbers are, respectively $$on_{k,n}=\frac{n-k+2}{2} \qquad\qquad en_{k,n}=\frac{n-k}{2}.$$ So that, you may apply the well-known formula $S=(a_1+a_n)n/2$ to get $$S_{k,n}(on)=\frac{(n+k)(n-k+2)}{4}.$$ Notice that the following things.
-You can also calculate an arbitrary sequence of consecutive even numbers.
-If $k=1$, then $S_{1,n}(on)=((n+1)/2)^2.$