Results 1 to 2 of 2

Thread: Help moving graphic objects...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Lancashire UK
    Posts
    375

    Help moving graphic objects...

    I'm currently writing a chess game in vb.net, I need some pointers on the graphical side of the game, basically i want the user to be able click on a piece and drag it to new square and when the mouse button is released it needs to snap to the centre of the square. Also i want the piece to move smoothly as its dragged across the 'board'.

    I'm not sure how best to do this, I've done a fair bit of game programming in my younger days on an Amiga using sprites etc, do such things exist in VB.Net ?

    Thanks in advance for any info.

  2. #2
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    Re: Help moving graphic objects...

    You should redraw the board when the mouse moves and dlace the piece being moved on the mouse's position.
    When it is dropped you determine over which square it is.

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