Hello everybody,
I want to make a platform game with different layer:
The background moves slower and the foreground moves faster.
I've tried to find the solution, but I could not...
Could you please help me with this? thanks a lot.
Yuan
Change the 'parallax' property on the layer you want to scroll slower. E.g. make the background parallax 30, 30.
Thanks Ashley , I will try this out today <img src="smileys/smiley17.gif" border="0" align="middle" />
what about for a literal foreground? can you set a layer to parallax faster than 100%?
aridale:
I've been wondering the same thing, so I just tested parallax scrolling above 100% on a foreground layer in front of the field of play. It seems to behave as expected. I tested up to 200% on both X and Y and it worked fine (in FF11 at least).
--Joe
Develop games in your browser. Powerful, performant & highly capable.
awesome thanks for the heads up joeykid6