how gravity leaves fall to the ground.
every tick -> set leaf.y to leaf.y + 10
Develop games in your browser. Powerful, performant & highly capable.
If you also want some lateral movement, like a real leaf, you could add sine behaviour horizontal movement to leaf object and use the above example. Try it :)
Windwalker capx examples that can make more?