-
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
-
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]
-
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