I have a class made that has function and variables and all the usual stuff.
But I want so if the user changes the x varaible like:
object.x = 50;
the class will perform a function that changes the x like this:
so it will change the object to the new x the user set. How would I do that?