How to make my character drop an object each time i pick a certain ammount of "coins" in a platformer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pizza_lover

So I’ve had some trouble finding a way to make the following action happen. Here’s the deal; I’m currently working on a game and I need to make a tree grow on the floor of the platform each time my character collects 10 “coins”. I’ve already made the animation for the tree growth in a new scene but I just don’t know how to make it land o the ground or even how to make it appear each time I pick 10 “coins” if anybody knows something about this, please help me.
Many thanks

:bust_in_silhouette: Reply From: vnmk8

load or preload the tree scene and instance it when the player picks 10 coins

:bust_in_silhouette: Reply From: pizza_lover

Thanks!!! I just did it and it now works each time i get 10 coins, my only issue is that the tree now trasspases the floor, but i will try to fix it