Page 1 of 1

[2D Game]how I get the sprite ID inside a screen ?

Posted: Tue Jan 21, 2020 7:36 am
by skinkairewalker
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 ?

Posted: Tue Jan 21, 2020 1:57 pm
by Derren
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.

Re: [2D Game]how I get the sprite ID inside a screen ?

Posted: Wed Jan 29, 2020 5:21 am
by skinkairewalker
thanks :D