How to change a variable while playing

I have to be able to change a few variables on screen. Simply display the text and have a little box in which I can insert different values for the variables. The variables would change a guy texture position.
I can’t quite find the code for that.
Where should I look?

basically it’s assigning new value in the editor once I press play.