Sign in to follow this  
Akpos15

Unity 2D

Recommended Posts

I'm creating a 2D game where there are different backgrounds. I need to know about a feature where the different backgrounds can repeat one after another randomly.

I created different backgrounds in the game so I want a situation where the backgrounds will loop between each other. I mean, I will just follow each other, since it is an endless game I will like to separate the backgrounds and make it in a way that that background 2 will follow background 4 and just switch between backgrounds.

So that's what I mean, I hope you all understand.

I am using Unity and work with C#, the 2D game is not a tile game and I want the backgrounds to swap with each other and not for the background to follow the order in which they are built: I want them to swap, like, 1 to 3, then 5 to 2 to 4 to 3 to 2 to 1 and so on.

santa-claus-sprite.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this