Sorry for confusion in the last post i meant i found a solution to no out of bounds problem, so about the other problem


for some reason when i go up far enough, my character goes under the next sprites
sorry if i am annyoing you all

The z order decides what sprites are over which sprites. one of your floor sprites here must have a higher z order value than the player sprite. Simply change the z order of the floor sprites to be the same lower z order than the player z order.