Hi Corona community,
I recently implemented a horizontal parallax scrolling background and tried to compensate the gaps between layers using delta time. I’m very new to game development and apparently my implementation works. The problem is that if I increase the speed of the background or if major frame drops occur (especially on Android), they start appearing again (the gaps) and they start growing bigger over time. This breaks the implementation completely. I have open sourced the module on GitHub and it’s on a main.lua and parallax.lua files that anyone can use in their games.
I’d really appreciate your experience and help on how to solve this issue using delta time correctly. I did what I though it was correct to do, but apparently it’s not.
The code can be found on GitHub at:
https://github.com/itsProf/corona-parallax-scrolling-background
Thanks.