0 votes

So i have a animated sprite of rain, in a 2d game, which is 16x16 in size. The AnimatedSprite is added to a canvas layer and put in front of everything else to simulate rain without the need for particles.

Now instead of filling the whole world of rain, i want to instance the rain animation depending on the size of the camera that follows the player.

The Camera's size is static, and always follows the player, so i am guessing i have to get the camera's size (x and y), and attach each instance of the rain animation to the camera so it follows it?

Any hints or tips on this?

in Engine by (17 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.