We use "I wish" and "If only" with the past simple tense to express regret about the present, such as wishing one could play the saxophone or wishing for a ride to school in the rain. We use "I wish" and "If only" with the past perfect tense to express regret about the past, like wishing one hadn't spent so much money or hadn't saved pocket money for a party.