because I tried to make a background of 10000 width but something went wrong!!
Could you explain what this "something" was?
Maybe we can solve "something" for you..
Using tiled background it shouldn't be an issue making the background that big, but you could also choose to create and destroy instances of it when needed..
It all depends on what you want to do, the result you want to get.
There is not one solution that fits all circumstances, although there are "solutions" that fit none..