I do not have anything to add to the already great advice you got on the issue, so if you do not mind a similar suggestion on this could be adding the thought of “what do I want from this part of the board?” in parallel to whatever other opportunity comes along on the board.
For example, when you get out of the opening, this is what your moves declare that you want:
But when White approaches, you keep changing plans and you try to achieve multiple conflicting goals.
For example, now you suddenly want this:
Right afterwards you are back to wanting this:
And then you are back wanting the corner as well.
In the end, you are also trying to attack the White group and you end up losing your main initial goal, for not enough compensation:
If you want to decide to attack or defend or gain something, remember to look around and utilise your stones. If you want to attack, then attack by using the stones you have.
A simple example:
Now all your triangle stones are working together, if it was a joseki then you are already one move ahead from White with R14 already in position, so if White does the usual extention then:
…then White could end up with a stick with no base and not many places to run. It might find a way to live, but you will gain a lot of moves while it struggles. Try to visualise the same board without the triangle marked stones. It would be ludicrous. But the existence of these stones give you the strength to play those moves, because the stones work together.
Last, but not least, even if you find yourself straying from your goals, you can still return to them, but at some cost. The more moves you lapse away from your goals, the more the cost, however, sometimes it is still all good. For example, even if you played the same exchanges initially, you could still rotate back to building in the center:
White is building a wall while pushing from behind, and that wall is facing your stones. Meanwhile you are building towards the center, your are ahead in the pushing and you can start thinking of setting up some sort of attack on white’s stones on the top left or, even better, reducing/invading at the bottom side.
So, simple moves and a simple thought: Decide what you want and try to get it, but also try to avoid changing goals, on the same local part of the board, with every couple of moves. Have fun! 