LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

How to use a sprite's XY coordinates to check for collision?

Root / Programming Questions / [.]

ResetReloadCreated:
Something like BGGET but for sprites? Maybe I missed something but I can't find the command for that.

You have two options to achieve that:
  • Use SPCOL on each sprite and check their position with SPHITRC. This function let you check if there is any sprite colliding with the rectangle defined with SPHITRC...or
  • Get each sprite position with SPOFS and check if the coordinate is inside a rectangle.