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.

Code Snippets / [DBP] Accurate Object in screen() Function

Author
Message
Serial Velocity
16
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 25th Oct 2008 17:58 Edited at: 25th Oct 2008 17:58
Here is a simple and much more accurate function to check if an object is on the screen or not. However it will only work if the center of the object is visible.

Enjoy



BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 11th Nov 2008 03:16
Eh? I don't see how it can be better if it relies on the original function?...

Please correct me if I'm wrong.

Serial Velocity
16
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 11th Nov 2008 16:36 Edited at: 8th Feb 2009 13:33
It uses the native function to check if its infront of the object which is the only aspect of the native command that works accurately.

Login to post a reply

Server time is: 2024-11-22 07:19:17
Your offset time is: 2024-11-22 07:19:17