Camera 2D not repeating background image

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lssilva
:warning: Old Version Published before Godot 3 was released.

I have a Node2D with a sprite attached (my background image). A RigidBody2D (the player) is also attached to this Node2D. This RigidBody2D has the Camera2D attached to it.

The background image is already set to repeat, with region on and all that. In the Project View it works. The thing is: when acctually playing the game, the Camera2D is not rendering this repeating background image. It shows the normal image, and when it’s supposed to repeat it, it shows a blurred image. Like the background image is being dragged, or just stretched.

Should I be changing anything on the Camera2D? Am I forgetting something?

It almost sounds like the ‘repeat’ setting on the texture of the sprite is getting turned off for some reason. If you turn repeat off, do you get the same stretching effect in the preview window? Do you have any scripts that change anything on the background Sprite?

mollusca | 2017-10-11 15:25