T
thetafferboy
Guest
Hi all,
Run in into a frustrating issue near the end of game development. I've made one 'infinite runner' type game, so the background scrolling speed needs to keep in sync with obstacles and game objects.
This works fine, controlling the obstacle speeds and background speed with a variable. However, when I export to HTML5, I notice the
does nothing in HTML5. The background wil move, but always slower than the other objects in the game.
As a test, I used
and sure enough, on Desktop, the background whizzed by - but in HTML5, it stayed the same speed.
Am I doing something wrong, or is there a way around this?
Run in into a frustrating issue near the end of game development. I've made one 'infinite runner' type game, so the background scrolling speed needs to keep in sync with obstacles and game objects.
This works fine, controlling the obstacle speeds and background speed with a variable. However, when I export to HTML5, I notice the
Code:
layer_hspeed("Background",global.runSpeed);
As a test, I used
Code:
layer_hspeed("Background",global.runSpeed+100);
Am I doing something wrong, or is there a way around this?