|
PointHitSprite | |
CollisionFlag = PointHitSprite(PointX, PointY, SpriteIndex) | |
Parameters: PointX = The points X coordinate PointY = The points Y coordinate SpriteIndex = The Sprite to check for collision against |
|
Returns: CollisionFlag = The result of the collision query (0= No collision ,1 = Collision) |
|
The PointHitSprite function returns if a collision occurs between a point and a sprite. When testing the sprite the PointHitSprite command uses the sprites current collision mode as the hard region of the sprite. FACTS: * PointHitSprite uses the sprites collision mode as the hard region of the sprite. * See SpriteCollisionMode Mini Tutorial: This example creates a random image, creates 10 randomly positioned sprites on the screen using this image. The main loop rotates the sprites while scans them for collisions using PointHitSprite
|
Related Info: | CircleHitSprite | QuadHitSprite | RectHitSprite | ShapeHitSprite | SpriteCollisionMode | SpriteHit : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |