Author Topic: Collision Classes?  (Read 4653 times)

Tanja

  • Clever
  • Fanatic
  • ***
  • Posts: 606
    • View Profile
Collision Classes?
« on: 2007-11-21, 02:54:07 PM »
are they available in sgdk2?
it was very comfortable to set the classes and the base interactions. i wonder because i can't find a method which is dealing with sprites touching other sprites.
i ask because i want to make some "wind" sprites (first i wanted to make animated tiles, but than i could them not use before a rock or so), and when the flying player gets into the air-current, his velocity changes...

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Collision Classes?
« Reply #1 on: 2007-11-23, 10:35:50 AM »
They are called Sprite Categories in SGDK2.  You can use that with TestCollisionMask or TestCollisionRect. Let me know if you need more help than that.