Grouping Actors or 'walls' - making a catching cup

Hi all.

Im working on a game or two at the moment, trying to get to grips with Gamesalad as quickly as possible etc etc etc.

I want to create a catching cup to catch a ball. Originally I thought just create the cup actor and set up a collide and animation/destroy on overlap/collision. However I want this 'cup' to be a little more realistic, so should try to ensure I get the rim/edges of the cup working correctly --- ie bounce out off when hitting them. That led me to thinking (its a simple 2d cup) of just creating three actors, a cup bottom and two cup sides.

However this is where my plan needs some hmmm...planning. I'm sure I can get this working ok without input, but it will probably be the long ridiculous route, ie setting up a move function on each individual actor (that makes up the cup) to move in sync with one another.

Am I right in thinking we cannot simply group actors like this?

Would the best option be constraining the two 'side' actors to the bottom actor and letting the bottom actor control movements?

Does anyone have any suggestions for achieving this? How would you do it?

Any input is appreciated.

Comments

  • brandon.shepherd99brandon.shepherd99 Member Posts: 44
    Probably, what i would do is set up to game attributes (Cub_Base_X and Cup_Base_Y) and constrain these attributes to the Cup_Base's X and Y position. That way you can constrain the two side pieces to the game attributes plus the correct offset. :)
  • CBWellsCBWells Member Posts: 3
    Thanks for the quick reply Brandon. Sounds like a good line, i'll give this a try.
  • CBWellsCBWells Member Posts: 3
    edited July 2013
    Yeah nice one Brandon, that worked a treat. Much appreciated. And i'm only moving the catcher cup from left to right so didn't have to bother with the y. I'd mark this as accepted/closed if I could see a button to do so? (read a lot of posts here and the odd one has people moaning because the thread starter didn't do so)

    Edit: Hmm maybe that's because I started a discussion as opposed to a question.
Sign In or Register to comment.