How to check actors are fully overlap?

AlkaPPAlkaPP Member, PRO Posts: 194

Hi guys,

I've seen a tutorial about checking ONE actor is fully overlap another actor. My question is that if I have one big actor and let's say 5 small actors, how can I check to see when the 5 small actors are full cover the big one?

I know it's confusing. I have the sample here: http://www.smart-kit.com/games/game2

Thanks for helping,

Comments

  • games4fungames4fun Member Posts: 185

    Do you know where I can find this tutorial?

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    You can use tags to sort actors. Give each one a different tag and use an attribute to count them by tag.

  • games4fungames4fun Member Posts: 185

    I don't think that would work in my situation. I have a actor (Lets call it Actor 1) that you can spawn anywhere in the game. What I want to do is if you spawn multiple Actor 1 actors, and if any of them fully overlap each other to destroy them. If they don't fully overlap to do nothing.

    Would tags help solve my problem above?

    Thanks

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    You would have to assign numbers to each actor upon spawning which is pretty easy to do and then build out code to see when they all overlap. Basically and algorithm.

Sign In or Register to comment.