Hi I am still quite new to unity and C# programming but I am creating a game and I would like your help with something.
So I have a variable, like “money”, that will fluctually increase from 20 to 2000 or something along that line.
Now I want to have a background that will scroll along its Y-axis according to the change of the variable: money.
So when money = 20 the object:Y-value = 0 , and when money = 200, object:Y-value = 100, for example.
I have tried some things with transform.position, but could not get it to work.
I hope somebody has an idea on how to do this.
Thanks in advance!