I have a player its like side scrolling game, when player finish 1 background and hut right button immidietly i have to create another background. How ?
Besides i cant erase my play button. When i hit play button its hidden behind of background.
Normally for endless backrounds you will create a couple of copies of the background placing them beside each other. Then you move the background across the screen and when you detect one has moved off screen, you reposition it to other side of the other background. By creating them at the same time, when you add your button later, it will be on top.
I don’t think they want them endless, as in Metal Slug the way it works is that it builds the entire level and “activates” them as the player moves along.
Normally for endless backrounds you will create a couple of copies of the background placing them beside each other. Then you move the background across the screen and when you detect one has moved off screen, you reposition it to other side of the other background. By creating them at the same time, when you add your button later, it will be on top.
I don’t think they want them endless, as in Metal Slug the way it works is that it builds the entire level and “activates” them as the player moves along.