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 / Screen Border Collision Help

Author
Message
DarkAnvil
15
Years of Service
User Offline
Joined: 26th Jul 2010
Location:
Posted: 26th Jul 2010 10:12
Simply put I cant figure out how to make it so that my object stops when it reaches the border of the screen. Can anyone help me with this.
RedFlames
18
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 26th Jul 2010 15:27
Something like this?

One more thing about "Object Screen X/Y": If the camera is looking exactly the oposite direction (instead of facing the object) the values will be in bounds too.
(I think the coordinates are mirrored then)
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 26th Jul 2010 15:29
First, are you using 2D or 3D?

The fastest code is the code never written.
DarkAnvil
15
Years of Service
User Offline
Joined: 26th Jul 2010
Location:
Posted: 26th Jul 2010 22:59
Quote: "First, are you using 2D or 3D?"

its a fixed camera position but using 3d models as sprites with a 2d background so its kinda both...

Login to post a reply

Server time is: 2026-07-25 07:02:00
Your offset time is: 2026-07-25 07:02:00