My pillars are behaving weirdly ,pillar spawn with different speeds

Hi Akash,

Welcome to our community. In which course and lecture are you?

I am from C# unity batch 2d game development.

After completing the tutorial of first game ( delivery dash ) , I am trying to make a flappy bird game,for that i needed to spawn pillars and they are spawning with non consistent speeds

So, this is a personal project? I’m asking because I do not recognise this game in your screenshot. If it is a personal project, I’m afraid we teaching assistants probably won’t be able to help you with this because this is beyond the scope of our courses. If you do not get any help here, you could join our Discord chat server and ask fellow students there.

A little tip: Use Debug.Log to see if the code does what you expect it to do. Maybe the calculated values are not the values you expect.