Hey, there!
I’m making a train game where you need to control the gate-thingy so cars and trains will not crashed together.
I want to the train comes from the bottom of screen and go to top of screen with tween behavior. When the train at the top of screen, it’ll wait for a few seconds, then it’ll do the same process (moving from bottom to top).
But what I saw is isn’t what I want. Here’s some image for reference.
The train position when on bottom. (Y = 877) (Ignore the second lane)
The train position when on top. (Y = -287) (Ignore the second lane)
The codes
Hope someone can help me, thanks!