Use the arrow keys to move. Collect coins by touching them. Go from area to area by moving to the left/right of the screen. Upgrade by clicking on the circles that will appear when you have enough to buy them. Upgrade the tree by clicking on it, the price to upgrade is on the sign. Unlock the ending by clicking on the gate.
This is a remix of Flapjax404's "Coin Man", I just found it more convenient to start from scratch as opposed to directly remixing his project. https://scratch.mit.edu/projects/24538490/ << the original. All graphics and coding created by me, and obvious inspiration from @Flapjax404