Results 1 to 6 of 6

Thread: Another movement question

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Arkansas
    Posts
    15

    Post

    Ok, what is the code to make something move... let's say another picture box, named picture1.picture. Ok, I need to move picture1.picture around inside of another larger picture box that we'll call picture2.picture. I want to move the picture1.picture around inside picture2.picture by using a mouse or a command1 button. Also, I have my picture2.picture's background equalling a map with different things on it that measure 32x32. So if there is a way to move picture1.picture around inside picture2.picture like it was actually moving between 32x32 squares that would really help.

    So I guess this is what I need:
    1) A code to determine the guy's coordinates.
    2) A code to determine the mouse's coordinates when it clicks.
    3) A code to make the guy move to the mouse's coordinates when it clicks, but he has to do it one "square *32x32*" at a time.
    4) Make the guy stop when he gets to the mouse's clicked coordinates.

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Arkansas
    Posts
    15
    Also, if you could just tell me how to do one of those above things I would be appreciative.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Do you still have problems with this?=
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Arkansas
    Posts
    15

    Talking

    Yah, because I am new to programming and what you told me earlier I understood why you'd use it, but I don't know how to turn that into programmming language.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Arkansas
    Posts
    15

    Talking

    Hey ked, I added you to my ICQ list, I thought it might be easier and quicker to talk over ICQ, but you're never on. Do you still even have your account?

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I am online about 4 times a day, just be patient
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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