Then you set put the velocity on the "move" value of the fglayerbgspeed -10
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.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.
yeah, but will the car have moving parts, like the tires? if the tires are static (or you can't view them) you can use the fglayer trick and it will do the job.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.
The car tires will be hidden as they will appear at the very front (bottom) of the game screen.yeah, but will the car have moving parts, like the tires? if the tires are static (or you can't view them) you can use the fglayer trick and it will do the job.
ah, so use the method I told you aboveThe car tires will be hidden as they will appear at the very front (bottom) of the game screen.
ah, so use the method I told you above
here is the code in action
yepSuccess! I now know that the "-1" in the layer settings is an infinite loop. thank you