I need help in shootorial 2, i drew my own background which is only as large as the game screen ( my game screen is 840*300 and not 600*300) on page 7 of the tutorial we have to fix the scrolling background by looping, my looping doesnt work, i copied and pasted the commands, i tried to replace the 2110 with 840 as the width of my background but it didnt work. Can anyone help?
|
|
|
|
|
screenshot, perchance? Your code? More info? Then I can help you. |
|
|
ok here it is, |
|
|
(upload images to http://imageshack.us/) I think maybe for that small width background (as wide as game) is a bit bad, try adding 3rd copy of background. |
|
|
doesnt work, itried to copy the image and update the actionscript with new width but no use! |
|
|
|
|
|
You still haven’t told what the problem is through, Is it jumping at wrong place or something? |
|
|
no, it doesnt loop |
|
|
hb2007 said:my looping doesnt work, |
|
|
You are right kloma my background doesnt loop, I tried your suggestion but it still didnt work! |
|
|
classnames are case sensitive so you must make sure that your movieclip classname is background and not Background or something like that. also in your screenshot you haven’t saved your file. Flash can only read the version you saved the last. it can also be that the files aren’t in the same folder. that’s all i know about it. I hope it helped |
|
|
nothing works, is there any other way i can loop the background? in tutorial they say it is the easiest way, is there any harder, working way? |
|
|
Is the background moving but not looping? |
|
|
Here’s a code I use: (also note that total width of background images must be larger than game width*2) Btw as in “doesn’t loop” does the background appear 2 times and then it turns white? |
|
|
i also have this problem… |
|
|
btw your code shall be: |
|
|
hey jsapp my backround is moving and not looping, make a background that loops seamlessly into itself. |
|
|
I have the same problem, I’ve tried multiple solutions too (copy pasting the coding for actionscript from the sourcefile). |
|
|
The problem is that the word “background” is a special keyword in flash and cannot be used as a name of a class. See how it’s in blue? If you capitalize it or make it background_mc then it should work fine. |
|
|
thanks a lot Grape finally i knew the solution, you really helped. |
|
|
okay, i have done everything, i copied letter by letter the screenshot in the tutorial and have even downloaded the source and replaced my code with it. I have checked everything, and my background won’t even scroll, much less loop. does it have something to do with CS4? |
|
|
nvm. good grief. one liitle semicolan….. |
|
|
Maybe it just hates you. |

Loading