|
CircleHitSprite | |
CollisionFlag = CircleHitSprite(CircleX, CircleY, Radius, SpriteIndex) | |
Parameters: CircleX = The circles X coordinate CircleY = The circles Y coordinate Radius = The Radius of the circle SpriteIndex = The Sprite to check for collision against |
|
Returns: CollisionFlag = The result of the collision query (0= No collision ,1 = Collision) |
|
The CircleHitSprite function returns if a collision occurs between a circle and a sprite. When testing the sprite the CircleHitSprite command uses the sprites current collision mode (See SpriteCollisionMode)as the hard region of the sprite. FACTS: * CircleHitSprite uses the sprites collision mode as the hard region of the sprite. * See SpriteCollision 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 CircleHitSprite
|
Related Info: | CompareSpritePixels | EllipseHitSpritePixels | PointHitSprite | RectHitSprite | RectHitSpritePixels | SpriteCollisionMode | SpriteHit : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |