Help needed for making one object absorb another similar object
Burzmali
Member Posts: 9
I have a game where the player is trying to get like objects to touch, and then those objects will meld together. Think of it like trying to get bubbles to come together and form a larger bubble.
The way I'd like to do this is, when two objects of the same color collide, one of them gets bigger, and the other one resets (I'm recycling objects). The objects are all the same actor type, though, and they have the same tags. So I can't just give them a condition based on colliding with an actor of a certain type or tag. Ideally, I'd like to base it on which object is bigger. So the bigger object would grow, and the smaller object would reset.
Near as I can tell, actors can't directly see other actors attributes, and you have to use game or scene attributes as a go between. Does anyone have any suggestions for making this type of gameplay work?
The way I'd like to do this is, when two objects of the same color collide, one of them gets bigger, and the other one resets (I'm recycling objects). The objects are all the same actor type, though, and they have the same tags. So I can't just give them a condition based on colliding with an actor of a certain type or tag. Ideally, I'd like to base it on which object is bigger. So the bigger object would grow, and the smaller object would reset.
Near as I can tell, actors can't directly see other actors attributes, and you have to use game or scene attributes as a go between. Does anyone have any suggestions for making this type of gameplay work?
Comments
My games both have over 180 Attributes that I'm constantly keeping track of, saving, and loading. It's just the nature of the beast right now.