[RESOLVED] Simple moving character question
Hi,
I'm basically making a small corny game but I'm enjoying creating it. I have hopefully an easy question. I am just moving a character in four directions on the screen but in angled directions - 45 degrees and so on. So the character never just moves up/down or left/right. All I'm doing is setting the Top and Left properties of the image control.
The problem is I can actually see the character flash to the Top position before being placed in the Left position also. How can I move the character smoothly at an angle? Like if I have the next set of X/Y coordinates, I want it to slide to that position.
The control for the character is actually a gif user control because I plan to animate the character walking to the new position.
Any suggestions? I appreciate it!
Re: Simple moving character question
Is this VB6?
If so you can set the .Top and .Left at the same time (and so have just one change of position), by using the .Move method, eg:
Code:
ControlName.Move LeftPos, TopPos
Re: Simple moving character question
That worked great!
Thanks
Re: [RESOLVED] Simple moving character question
what about for vb.net 2008??