[2D Game]how I get the sprite ID inside a screen ?
- skinkairewalker
- Enthusiast
- Posts: 627
- Joined: Fri Dec 04, 2015 9:26 pm
[2D Game]how I get the sprite ID inside a screen ?
how I get the sprite identifier inside a screen which the mouse clicked on , or collision between sprites ?
Re: [2D Game]how I get the sprite ID inside a screen ?
SpriteCollision()
SpritePixelCollision()
For the mouse, display an invisible Sprite at the cursor and use SpriteCollision().
You need to loop through all the sprites and check for collisions. More than two sprites can have a collision if they overlap.
SpritePixelCollision()
For the mouse, display an invisible Sprite at the cursor and use SpriteCollision().
You need to loop through all the sprites and check for collisions. More than two sprites can have a collision if they overlap.
- skinkairewalker
- Enthusiast
- Posts: 627
- Joined: Fri Dec 04, 2015 9:26 pm