I don't think it would be possible to use scratch for this type of game since in Idle games you can turn off your phone and when you open the game again it gives you money based off of your gone time (at least usually)