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 / Simple Box question

Author
Message
Calliah
21
Years of Service
User Offline
Joined: 14th Oct 2003
Location:
Posted: 8th Nov 2003 23:46
Hi,
I made a simple 2d box and i have gotten to move it around the screen. I am just curious as to why, in order to move the box up, I need to use DEC a, rather than INC a.
Also, When any part of the box moves off the screen, the whole thing disappears. Why is that?
Thanks.
Calliah
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 9th Nov 2003 00:22
well depending on where the box is, and where you want it to go, you need to dec and inc various x and y to achieve the effect. In 2d the upper left corner of the screen is (X,Y) 0,0 - the lower right is whatever your resolution is set to (ie 800,600)

not sure about the other thing you asked.

-RUST-

Login to post a reply

Server time is: 2024-11-25 16:38:51
Your offset time is: 2024-11-25 16:38:51