Author Topic: cOLLISION dETECTION  (Read 2927 times)

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
cOLLISION dETECTION
« on: 2006-08-10, 02:03:02 AM »
my sprite wont hit my other sprite i usually get it to work quite easily but i think its because one sprite is 32x32 the other 120x120 so one is nearly 4 times bigger than the other (boss level) so i need help if it just dont work like that and i have to make him smaller i will do that just tell me whats wrong

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: cOLLISION dETECTION
« Reply #1 on: 2006-08-10, 09:46:13 PM »
Check that:
1) The colliding sprites are on the same layer
2) They are members ot fht correct collision class
3) The collision is defined between these classes correctly
4) Non-transparent pixels are overlapping during the collision
5) Neither sprite is set to "Simple (Scripted)"

If all those are true, then I think a collision should be occurring.  If you can't figure out why it isn't, I may have to investigate your project.  Got a place to post it?

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: cOLLISION dETECTION
« Reply #2 on: 2006-08-10, 11:00:18 PM »
yep they were on different layers i didnt think that would matter at the time thanks ;D