How to change the speed of a scrolling background

Weasel8778

  • Posts: 236
Is there a way to manually update how fast a background is scolling while the game is playing? This is for a launcher-style game.

dtrungle

  • *
  • Posts: 1938
Copied from somewhere else:

Put this in a code block and change the x and y to the speed you want.
setScrollSpeedForBackground (x,y);
This is flash only too, it won't work in iOS.

All I know.

Weasel8778

  • Posts: 236
Copied from somewhere else:

Put this in a code block and change the x and y to the speed you want.
setScrollSpeedForBackground (x,y);
This is flash only too, it won't work in iOS.

All I know.

Thanks a lot!

Pixel Pusher

  • Posts: 152
That doesn't work in 3.0 for some reason. Works fine in 2.2

Also, be sure that the BG itself has at least a 0.05 speed set in it's properties or it wont work. In other words, it needs to actually have a scroll value. You can also use like 0.005 as well.