How to? For example, I want to make a pong game and I want the balls x value to increase over time. I have tried xvar=xvar+1; but that makes it remain static... Okay problem solved
Well I want them to change every frame/step. What happens is they change at program start and just stop.
If u r using too many functions and most of them are using xvar then just make xvar as a static and global variable otherwise just declare it as static in main Then Try the same code it will work Static means that u are instructing the variable to retain its value