How to make flappy bird gap that moves up and down?

I thought it would be simple. I got the two bars like how I want they spawn perfect and everything, the only thing is the gap between the line.

I made an interger and called it Random Y . I said change attribute to random( 22,300) and where I put my spawners where the "from position" is I put the attribute I made "Random Y" in the Y place on the spawners for both top and bottom bars. It like did some weird thing and its not making a constant gap and moves higher and lower just like the real flappy bird. What could I be doing wrong? It made sense in my head... Anyone know the rule for this particular problem?

Comments

Sign In or Register to comment.