Game Development Community

Overlapping Scene Objects

by Matt Madeira · in Torque Game Builder · 01/09/2009 (11:15 am) · 1 replies

Hi all,

I did section 1 of the whack a mole tutorial, so I can run the game and click on a mole and have it animate and disappear. That part works great.

Now I'm looking for help on setting up a different game where 2 (or more) moles are stacked on top of each other. I would like the top mole to disappear without effecting the mole underneath. Currently if I move one mole in front of the other, both moles disappear when I click.

I'm looking for a best practice on how to proceed. Do I need to put each mole in its own layer and have a mouse script that applies "damage" to the layers in a specific order, or is there a better way in the editor to control objects that are stacked on top of each other?

Thanks!

About the author

Recent Threads


#1
01/09/2009 (12:58 pm)
Hello,

The next section of the tutorial will explain the coding involved to stop this from happening :)