
-----------------------------------
Thuged_Out_G
Tue Jan 27, 2004 11:33 pm

Draw Commands
-----------------------------------
i dont have the MSDN help files installed on my comp, so there goes my chances at looking at the help files lol.

but i want to make a pong game, with a user login...but i dont know how to write/read from a database...i also dont know any of the commands to draw the paddles/ball...i know you can do it right on the form, but then what is the command you would use to move the paddles...im lost lol

-----------------------------------
Tony
Tue Jan 27, 2004 11:36 pm


-----------------------------------
you can use shapes to draw your paddles and ball. To move them, just change their left/top (thats x/y) property values.

btw - you can always look up help on MSDN.microsoft.com though it's complicated :roll: a lot of description about nothing :lol:

-----------------------------------
Thuged_Out_G
Tue Jan 27, 2004 11:49 pm


-----------------------------------
well obviously i have to change their values...how do i do that in a program though lol

-----------------------------------
Acid
Tue Jan 27, 2004 11:52 pm


-----------------------------------
object.move x,y

To make the center of the object where the cursor is you could put:

object.move x - (object.width / 2) , y - (object.height / 2)
