moving a object

thapchi's Avatar, Join Date: Mar 2010
Go4Expert Member
Can anybody tell me how to move a object in c++

Like if i am making a game

I have not started dont ask me about code

So if i am making a game and my character is this @ then i want to move @ how can i move it in game

like when i press the arrow keys it should move

can anybody give me a little eg.

like make a program and move @ when we press arrow keys
thapchi's Avatar, Join Date: Mar 2010
Go4Expert Member
sorry i forgot to mention its a console program
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
First display the @ at the starting position.
When the user presses a key, determine the new position, write a space to the old position and the @ to the new position.
This will give the impression that the @ has moved.