- Home /
Moving Clouds 2D
Hi so for my mobile 2D game I want to have it where I can have randomly generated floating clouds across the screen. I have a cloud sprite but I don't really know what to do next. Any help?
Answer by Mr_Teels · Jul 20, 2018 at 07:18 AM
Use some Animation Curves. https://docs.unity3d.com/Manual/animeditor-AnimationCurves.html
With Timeline and Cinemachine you mayby can make some more "Background Animation things" https://www.youtube.com/watch?v=oZRp8c1Wv-o
Answer by imaginaryhuman · Jul 23, 2018 at 07:05 PM
Make an public array of gameobjects. Assign a bunch of them to it in the inspector. Randomize their positions in Start(). Set up another array of movement speeds, then each frame add the movement speeds to the transform positions of the clouds.