1
Ask a Question / Changing the speed of a scrolling background
« on: July 04, 2012, 02:26:26 pm »
Hey,
Working on a game that has a constantly moving background (with several layers). During the course of the game the scene will pick up speed (everything moves faster), which requires the backgrounds to speed up scrolling.
I have read through this: http://www.stencyl.com/help/view/backgrounds-and-foregrounds/ and cannot see anything relating to adjusting the speed of the backgrounds on the fly. Is there a block that I am missing? If not, is there any piece of code I can run that would change or update the scrolling speeds of background/foreground layers?
Any help on this is much appreciated.
Thanks.
Working on a game that has a constantly moving background (with several layers). During the course of the game the scene will pick up speed (everything moves faster), which requires the backgrounds to speed up scrolling.
I have read through this: http://www.stencyl.com/help/view/backgrounds-and-foregrounds/ and cannot see anything relating to adjusting the speed of the backgrounds on the fly. Is there a block that I am missing? If not, is there any piece of code I can run that would change or update the scrolling speeds of background/foreground layers?
Any help on this is much appreciated.
Thanks.