Help needed for making one object absorb another similar object

BurzmaliBurzmali Member Posts: 9
edited November -1 in Working with GS (Mac)
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?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    The only way I can think to do that right now is with global game attributes. I know its tedious, but it works. Two attributes for each one of your actors. Constrain each one's width and height to the global attributes.

    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.
Sign In or Register to comment.