HasSpriteCollidedX

From SwinGame

HasSpriteCollidedX determines if a sprite has collided with a given x position. You will need to specify the kind of check to perform.

Where is it: SGSDK_PHYSICS

Contents

Languages

Pascal

function HasSpriteCollidedX(theSprite: Sprite; x: Single; range: CollisionDetectionRange): Boolean;

C#

public static bool Physics.HasSpriteCollidedX(Sprite theSprite, int x, CollisionDetectionRange range);

Visual Basic .NET

Public Function Physics.HasSpriteCollidedX(ByVal theSprite As Sprite, ByVal x As Integer, ByVal range As CollisionDetectionRange) As Boolean

Visual Basic 6

Public Function Physics.HasSpriteCollidedX(ByVal theSprite As Sprite, ByVal x As Long, ByVal range As CollisionDetectionRange) As Boolean

Example

Also See