Discord
Login
Community
DARK THEME

adressing sprites from my map

i was wondering if theres any way to check if a normal sprite, created by draw sprite, is in contact with one of the sprites used in my map for example "floor", of whom i got quite a lot. I basically want to know when my sprite is on this specific part of the map, without the need of creating a zone for that.

Use the Quick Engine library or (Quick Engine js all code translated to javascript).

If you look into the code, there are functions

  • isMapCellSolid
  • spriteMapCollision
  • mapCollision
  • spriteCollision

The version translated to javascript has 1000 sprites and 60 FPS

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community