I'm writing platform game (sth like orphan feast, it is not tile based game). To move my character you can use up, left, right arrowkeys and spacebar to attack. When the character moves left or right the background follows him. When he jumps, the background follows him aswell. But when my character falls down the background doesnt move. I've tried do scrolling background up&down by using the same method as for left&right scrolling. I've even tried hidden walls. I suppose that it doesnt work because i dont use down arrowkey to move my character.

Do you have any idea how I can fix this? How to make my background to follow my character when he is falling down?