Godot Version
4.3
Question
I want to make a mechanic where you can purchase and change backgrounds. I want to use a variable that can tell the Texture Atlas on a Sprite2D to set the region_rect.position.x to a specific number that the variable is, but nothing happens, the game runs as normal, but the BG stays as the default one. Here’s the code for reference. The code is put under a _process function
if clicker_bg.region_rect.position.x != bg:
clicker_bg.region_rect.position.x = bg