I was planning to, butExpresses an intention or plan that existed in the past, often introducing an explanation or contrast. The subject depends on context.
JA: 昨日は映画を見るつもりだったのですが、仕事が終わりませんでした。
EN: I was planning to watch a movie yesterday, but I couldn't finish work.