Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / newbie help :P

Author
Message
The Game Creators Forums
17
Years of Service
User Offline
Joined: 5th Aug 2007
Location: Bangladesh
Posted: 5th Aug 2007 16:52 Edited at: 5th Aug 2007 20:10
hello everyone complete newbie here . i need some help regarding drawing the screen border


this one draw the line .................

this one draw the line .
.
.
.


this one draw ...............

what i know is x1,y1 ,x2 y2 represent those numbers but i couldnt figure out how how does it draw each line i knw im complete noob and i dont understand math very well but can ny body help me undersand this Advance thanks )
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 5th Aug 2007 19:01 Edited at: 5th Aug 2007 19:02
If you mean to draw a 2DBox, (Not filled) then try this


I havn't tested it, buit it should work

Everyone Be Cool, You, Be Cool.
The Game Creators Forums
17
Years of Service
User Offline
Joined: 5th Aug 2007
Location: Bangladesh
Posted: 5th Aug 2007 19:15
Thanks MSOn this is great!!! i mean i asked help and i have got it from u .i thot its gonaa take a while to get response but u guys rock
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 5th Aug 2007 20:05
x1,y1,x2,y2 are points on a graph that tell you where to draw the line from. It is graphing (x1,y1) and (x2,y2)
The Game Creators Forums
17
Years of Service
User Offline
Joined: 5th Aug 2007
Location: Bangladesh
Posted: 5th Aug 2007 21:23 Edited at: 6th Aug 2007 20:17
Jerok, MSOn i thought i understood how these3 coordinate works but now im confused this following cod draws da screen border but last line is making me confused.

MSOn's code is excellent but i understand da x,y cooridnate only not both of dem together


can sum one tell me how both of this X1,y1,x2,y2 work together i mean i thot i was gonaa make a game but da way my head is doing im really upset plz plz plz help me understand dis problem
Insert Name Here
17
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 10th Aug 2007 22:35 Edited at: 10th Aug 2007 22:35
x1 is the horizontal position on the screen that the line starts on, and y1 is the vertical position on the screen that the line starts on. x2 is the horizontal position on the screen where it ends, and y2 is vertical position on the screen where it ends.

(N-1)/n*100<n2/n-n/2+n/4*2+100

Login to post a reply

Server time is: 2024-09-27 02:23:56
Your offset time is: 2024-09-27 02:23:56