[FEATURE REQUEST] getTileVisibility or getTileInViewport()

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
svizzari
Posts: 64
Joined: 18 Jun 2010, 11:55

[FEATURE REQUEST] getTileVisibility or getTileInViewport()

Post by svizzari »

hey guys -- another request.

Unless I'm not seeing it, there doesn't seem to be any easy way to determine whether an inventory item or avatar is currently within the viewport.

Suggested methods:

Code: Select all

OpenSpace.getTileVisibility(tile:Tile):Boolean;
or:

Code: Select all

OpenSpace.getTileIsInViewport(tile:Tile):Boolean;
To give you a use-case for something like this, perhaps I'd like to have a particular avatar (NPC) walk on-screen to "say" something.

Perhaps a:

Code: Select all

OpenSpace.getAllTilesInViewport():Array
would be nice too ;)
Post Reply