2D Toolkit Forum

2D Toolkit => Support => Topic started by: MrMacguffin on November 15, 2012, 12:35:06 pm

Title: Collisions and Z-axis
Post by: MrMacguffin 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!
Title: Re: Collisions and Z-axis
Post by: unikronsoftware 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
Title: Re: Collisions and Z-axis
Post by: MrMacguffin on November 15, 2012, 09:52:01 pm
Duh.  Thank you!