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 / What exactly is the difference between 'object in screen' and 'object visible'?

Author
Message
Bluespark
15
Years of Service
User Offline
Joined: 18th Mar 2011
Location:
Posted: 29th Aug 2011 01:54 Edited at: 29th Aug 2011 01:56
Question is in the topic title.
Even if there are minor differences, I would like to know them.
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 29th Aug 2011 02:24 Edited at: 29th Aug 2011 02:26
Quote: "OBJECT IN SCREEN
This command will return a value of one if the specified 3D object is wholly or partly visible within the screen borders, otherwise zero is returned.

Syntax

Return Integer=OBJECT IN SCREEN(Object Number)

Parameters

Object Number

Integer
The object number

Returns

This command will return a value of one if the specified 3D object is wholly or partly visible within the screen borders, otherwise zero is returned

Description

Even if the object is behind the camera, its overall size may partially clip the screen area. The parameter should be specified using an integer value.
"



Quote: "OBJECT VISIBLE
This command will return a one if the specified 3D object is visible, otherwise zero will be returned.

Syntax

Return Integer=OBJECT VISIBLE(Object Number)

Parameters

Object Number

Integer
The object number

Returns

This command will return a one, if the specified 3D object is visible, otherwise zero will be returned

Description

The parameter should be specified using an integer value.


"


Quote: "
This command will return a value of one if the specified 3D object is wholly or partly visible within the screen borders, otherwise zero is returned"


Quote: "This command will return a one, if the specified 3D object is visible, otherwise zero will be returned
"


CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 29th Aug 2011 04:47
You can hide or show an object using HIDE OBJECT and SHOW OBJECT, and you can find out if it has been hidden or not using the OBJECT VISIBLE command.

OBJECT IN SCREEN will tell you if the object is visible and within the boundaries of the player's active camera.

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame

Login to post a reply

Server time is: 2026-07-10 10:20:32
Your offset time is: 2026-07-10 10:20:32