How to check actors are fully overlap?
AlkaPP
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,
My Gamesalad Games On App Store:
Greedy Chubby: https://itunes.apple.com/us/app/greedy-chubby/id834371213?ls=1
Comments
Do you know where I can find this tutorial?
You can use tags to sort actors. Give each one a different tag and use an attribute to count them by tag.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
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
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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS