learn that the way computing people learn new things is by exploring.
have a written plan before you start exploring.
Translate your plan into code one step at a time -- test by hitting Play as you translate each little bit.
Some steps that in the plan could be written as a single action will be broken down into multiple instructions or steps in the code.
To make sure you are really understanding what you are exploring, you should be able to make predictions about what a code (or a slight modification to a code) would do before you hit Play. Make a prediction every time you make a change.
Have you noticed how picky the computer is? It does exactly what you tell it to do.