hello have a friend who is trying to recreate the effect of snow but is not well understand the code , have imported explain the code used ?
Hi Fernando, sorry for the late replay. Basically, I’m creating flakes in a loop and change the position on every frame. Then I’m checking for each flake if it is within the canvas. If not it will reset its position to the top an a random x coordinate. Hope that helps you. Cheers Ivo
Comments
hello have a friend who is trying to recreate the effect of snow but is not well understand the code , have imported explain the code used ?
Hi Fernando,
sorry for the late replay. Basically, I’m creating flakes in a loop and change the position on every frame. Then I’m checking for each flake if it is within the canvas. If not it will reset its position to the top an a random x coordinate. Hope that helps you.
Cheers Ivo