Positioning of collision boundaries in wrong position

Hi all,

I have just started with godot I have set up the screen size(viewport) in the preferences but when I come to place to rectangle collision shapes at each side I have to offset them by 50px to the left on both sides so that the player looks like he has hit the side of the screen.

If I set the rectangles to the viewport edges (blue lines) the player goes off the screen to the right and hits the stop to early to the left.

I have add collisionpoly2D to the player

Any ideas Thanks

Not at all sure what you are trying to so.

Screenshots and code (formatted text please!) would help.

Hi here is a screen shot showing the offset positions of the collision rectangles

Okay.

You are manually placing these collision shapes. I’m not sure why you can’t just place them where you want them.

Are these shapes attached to anything? Like an Area2D?

I have listed them as borders in the Game Level Tree As shown here

I started the project again and it seem to correct the problem