Results 1 to 3 of 3

Thread: PAC MAN GAME

  1. #1
    Guest

    Post

    im makin a pac man game and had a post up before
    i have ONE image that i made on a paint program that has all the walls painted in and i need to know the format to tell it when it gets to a certain x or y position (where a wall would be) to stop going nemore in that
    direction.
    somethin like...
    if imgmovingpicture.left+imgmovingpicture.width>
    (I NEED TO KNOW HOW TO ENTEr THE X,Y coordinates for the wall here) then
    imgmovingpicture=imgmovingpicture.left-10
    i dont know if this is clear at all but if you understand how to tell the computer to recognize x,y points please tell me the format
    thanks alot
    joe

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You could check the Pixel Color at the Specified Coords, if it's a Certain Color, (Color of Wall Edges), Don't Proceed.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

  3. #3

    Post

    Simple if you use the move method inside of a loop you can make it stop where ever try this
    code snippit:

    Static loop_index%
    For loop_index% = picture1.left To (Wall left coordinates) Step -1(1 is the slowest)
    picture1.Move picture2.Left, loop_index%
    DoEvents
    Next loop_index%

    Try to understand this it took a while for me to find out how to use it and im only 12

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