Hello Guest

Author Topic: Collisions and Z-axis  (Read 3676 times)

MrMacguffin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Collisions and Z-axis
« on: November 15, 2012, 12:35:06 pm »
I'm curious if I'm approaching this in a good way - thanks for any help you folks can provide.

I've got a simple game where a bus moves around and picks up passengers on the screen.  I'm using z-layers to sort the sprites for drawing, but that precludes getting the collisions to trigger.  If anyone has thoughts on how to handle this, I'd appreciate it. 

Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Collisions and Z-axis
« Reply #1 on: November 15, 2012, 01:46:02 pm »
Increase the collider depth in the sprite collection editor so they collide.
http://unikronsoftware.com/2dtoolkit/doc/reference/sprite_collection.html

MrMacguffin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Collisions and Z-axis
« Reply #2 on: November 15, 2012, 09:52:01 pm »
Duh.  Thank you!