Hi everyone,
I'm new to construct and I really like it. I'm trying to do a small test game where a horse has to jump over stones.
To fake the running of the horse I have 3 scrolling backgrounds.
I added each background twice (one time in the main scene and once out of the scene) both parts are scrolling with the same speed.
If one is out of the screen (Checking with IsOutOfLayout) it's position is set to the right out of screen and it can scroll again.
It's working very well except the fact that there is a small gap between the first and the second background (only if it was reset!) and this gap is getting bigger the faster the background scrolls.
I tried several things like setting the background to windowWidth - 1 pixel or windowWidth - speed of background or reset the background if it's x position is on 1 - backgroundwidth etc. but nothing worked.
Any one has an idea?
You can see the problem here:
fs5.directupload.net/images/151201/alouvgwt.jpg
If you want to have a look into the project, download it here:
file-upload.net/download-11088144/Horsegame.zip.html
Thank you all
Btw:
If you have a look into the project and you see other things which could be done better, feel free to tell me. As said I'm new to it (started yesterday ).
P.S. Im sorry I'm not allowed to post the urls correctly