CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    65

    How do you make a Bitmap move UP or LEFT ...

    Hi,

    I know the code to move a bitmap to the right, which is : (Example)
    Image1.Left = Image1.Left + 20
    But, how do you move the object in the opposite direction.

    Also, to move an object upwards its
    Image1.Top = Image1.Top + 10
    But, how do you move the object downwards.

    Any Info, I`m in the middle of making a game!!!

    Mark




  2. #2
    Join Date
    Jun 2001
    Location
    Memphis, TN
    Posts
    146

    Re: How do you make a Bitmap move UP or LEFT ...

    Have you tried subtracting values instead of adding them?

    Image1.Top = Image1.Top - 10


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

Featured