Falling leaves effect #79
-
|
My first level for my fangame so far is an autumn level, so I'm trying to add a effect where leaves fall downwards all over the screen. I want to make it more realistic so it'd involve parallax. Would I do this the same way I do backgrounds, just with a different depth? Would there be any way to do this without the framework's backgrounds messing up? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Create a new object for your leaf and spawn a bunch of them off-camera in intervals with some initial speed set Step: Then draw them with an offset to make them appear closer to the camera than the foreground Draw: Adjust the offset multiplier until you get the effect you want. The higher the multiplier, the faster leaves will scroll. You don't need to use the background parallax system for this (you wouldn't anyway) |
Beta Was this translation helpful? Give feedback.
Create a new object for your leaf and spawn a bunch of them off-camera in intervals with some initial speed set
Step:
Then draw them with an offset to make them appear closer to the camera than the foreground
Draw:
Adjust the offset multiplier until you get the effect you want. The higher the multiplier, the faster leaves will scroll. You don't need to use the background parallax system for this (you wouldn't anyway)