Copy link to clipboard
Copied
Hi!
I have to make a game similar to "Color Switch" or Super Mario, that moves the background as the player moves forwards or backwards (or in the case of 'Color switch' up and down) -- (i.e. I want the effect such as when the camera follows a moving car, the frame's BG is moving in opposite direction to the car--something like that). For example in Super mario or 'Color switch', the background seems to move endlessly without a seeming end. How can i achieve this effect?? If you guys know any tutorials, have tips, or any input, i would appreciate it greatly.
Thanks!
Kasun.
Copy link to clipboard
Copied
use a loop (eg, enterframe), that checks the current movement key and updates the background's x property accordingly.
for tutorials, google: actionscript 3 background scroll
Copy link to clipboard
Copied
Thanks kglad, I'll try that. And thanks for the google keywords.
If anyone has other inputs, please post them too.
Thanks.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now