Hello again,
Sry i dont want annoying to fill this Forum with newbie questions, but this Forum give me the best answers.
So i am working on a sidescroller, in the middle of the Screen is a RectangleShape, and if i collide it with my playerSprite, the Background Moves. Now i want that the Player not go through the Rectangle, ho can i fix it, here is my codepart:
if(playerSprite.getGlobalBounds().intersects(rect.getGlobalBounds())){
backgroundSprite.move( 0, -3);
// playerSprite dont walk trough rect???
}