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.

DarkBASIC Professional Discussion / help with scrolling tut

Author
Message
sinkler20
23
Years of Service
User Offline
Joined: 12th Mar 2003
Location: United States
Posted: 19th Jun 2003 05:51
I can't seem to get an answer from the newbees forum, So... I was hoping someone will answer here.
At the part of the tutorial is say's we will be scrolling a 432x368 section..our variable are entered like so:
x1 = 352
y1 = 16
x2 = 784
y2 = 384
My question is.. how did they come up with those variabels and how would I know how to come up with variables if I wanted to change the scrolling section.
any help would be appreciated. thanks learning DBP
philippians 4:13
SirReal
23
Years of Service
User Offline
Joined: 20th May 2003
Location:
Posted: 19th Jun 2003 07:51
I havent looked at the demo you speak of, but if you look at it:

x1 = 352 ( upper left corner x and y)
y1 = 16
x2 = 784 ( bottom right corner x and y )
y2 = 384

x2 = x1 + (image width)
y2 = y1 + ( image height )

SirReal

Login to post a reply

Server time is: 2026-07-11 14:54:47
Your offset time is: 2026-07-11 14:54:47