moving a object

Go4Expert Member
10Mar2010,16:11   #1
thapchi's Avatar
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
Go4Expert Member
10Mar2010,16:12   #2
thapchi's Avatar
sorry i forgot to mention its a console program
Mentor
11Mar2010,19:10   #3
xpi0t0s's Avatar
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.