I am trying to code flappy bird for the EV3 mindstorms and am trying to make pipes go across the screen, but the pipe is growing while going over the screen, can someone help me?
let scroll = 0
let pipe = image.create(screen.width, screen.height)
forever(function () {
scroll += 5
brick.showImage(pipe)
pipe.fill(2)
pipe.fillRect(scroll, 0, scroll + 15, 75, 1)
})