Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Draw Commands
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Thuged_Out_G




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Jan 27, 2004 11:36 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Thuged_Out_G




PostPosted: Tue Jan 27, 2004 11:49 pm   Post subject: (No subject)

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




PostPosted: Tue Jan 27, 2004 11:52 pm   Post subject: (No 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)
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: