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

Username:   Password: 
 RegisterRegister   
 Drawing a box exactly where you want it?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
vdemons




PostPosted: Tue May 10, 2011 10:41 pm   Post subject: Drawing a box exactly where you want it?

I am trying to make multiple boxes for a game I am working on, forcibly using the drawbox (x1, y1, x2, y2, Color : int) command. I want to make a piano out of a series of boxes but i don't know where the coordinates for the box end up, is there an easier way to do this, maybe a visual grid showing the coordinates or something cause my teacher wants me to use the drawbox command.

Please and Thank you in Advance!
Sponsor
Sponsor
Sponsor
sponsor
RandomLetters




PostPosted: Tue May 10, 2011 10:59 pm   Post subject: RE:Drawing a box exactly where you want it?

The coordinates are in pixels, with 0,0 in the bottom left corner, so it's like a graph grid.

You can use maxx and maxy to get the coordinate at the edge of the screen.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: