Results 1 to 4 of 4

Thread: [RESOLVED] Simple moving character question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Resolved [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!

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: Simple moving character question

    That worked great!

    Thanks

  4. #4
    Hyperactive Member
    Join Date
    Feb 2007
    Location
    indiana
    Posts
    341

    Re: [RESOLVED] Simple moving character question

    what about for vb.net 2008??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width