I used Godots tilemaps for the background and foreground I had three one was the physics layer, one was the black background and the other was the background objects, so I just forgot to change to the physics layer when I made that platform(it was supposed to look like the darkened platforms at the back),thanks for your feedback tho :)