Solved I have a question about the movement of the vehicle.

Question that is answered or resolved.

DD Tokki

Well-known member
1761156874807.png

I would like to know how to make the cars that pass by in the game background reappear after a certain amount of time, rather than just appearing once and then disappearing.
 
if they doesn't have animations, you can just use a fglayer and give it a velocity.

You need to, first, set a bg velocity

bgspeed -10
Then you set put the velocity on the "move" value of the fglayer
1761161714104.png
On my example, I have cars moving left to right and right to left, in different velocities

If they need animation, its better to use entities in this case.
 
if they doesn't have animations, you can just use a fglayer and give it a velocity.

You need to, first, set a bg velocity


Then you set put the velocity on the "move" value of the fglayer
View attachment 11963
On my example, I have cars moving left to right and right to left, in different velocities

If they need animation, its better to use entities in this case.
The background is fixed, but I want to create a car, make it move, and repeat the movement. I'm having a hard time figuring out how to implement this repetitive movement.
 
Success! I now know that the "-1" in the layer settings is an infinite loop. thank you
yep :)
Btw, try to use a higher value in xspace (5th value after the image path), as they cars are repeating too frequently.
other than that, nice work :)

ah, a tip: when you use this method, if you have an image used as background, it will move too.
If you don't want to make it to move, you have to replace it with a fglayer and turn off the "move".
This is the magic of fglayer - you can control each one :)
 
Back
Top Bottom