Computer Science Canada

Draw Commands

Author:  Thuged_Out_G [ Tue Jan 27, 2004 11:33 pm ]
Post subject:  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

Author:  Tony [ Tue Jan 27, 2004 11:36 pm ]
Post subject: 

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 Rolling Eyes a lot of description about nothing Laughing

Author:  Thuged_Out_G [ Tue Jan 27, 2004 11:49 pm ]
Post subject: 

well obviously i have to change their values...how do i do that in a program though lol

Author:  Acid [ Tue Jan 27, 2004 11:52 pm ]
Post subject: 

code:
object.move x,y


To make the center of the object where the cursor is you could put:

code:
object.move x - (object.width / 2) , y - (object.height / 2)


: