IsSpriteOnScreenAt

From SwinGame

IsSpriteOnScreenAt checks if the sprite is on the screen at the specified coordinate. You can specify the coordinate by passing the x and y or by passing the Point2D containing the coordinate information.

Where is it: SGSDK_PHYSICS

Contents

Languages

Pascal

Added in version 1.1:

function IsSpriteOnScreenAt(theSprite: Sprite; pt: Point2D): Boolean;

In version 1.0:

The second overload has been removed in version 1.1

function IsSpriteOnScreenAt(theSprite: Sprite; x, y: Integer): Boolean;
function IsSpriteOnScreenAt(theSprite: Sprite; v: Vector): Boolean;

C#

Added in version 1.1:

public bool Physics.IsSpriteOnScreenAt(Sprite sprite, Point2D point);
public bool Physics.IsSpriteOnScreenAt(Sprite sprite, int x, int y);

Visual Basic .NET

Added in version 1.1:

Public Function Physics.IsSpriteOnScreenAt(ByVal sprite As Sprite, ByVal x As Integer, ByVal y As Integer) As Boolean
Public Function Physics.IsSpriteOnScreenAt(ByVal sprite As Sprite, ByVal point As Point2D) As Boolean

Visual Basic 6

Added in version 1.1:

Public Function Physics.IsSpriteOnScreenAt(ByVal sprite As Sprite, ByVal x As Long, ByVal y As Long) As Boolean
Public Function Physics.IsSpriteOnScreenAt_Point(ByVal theSprite As Sprite, ByVal pt As Point2D) As Boolean

Example

Also See