Hollow Actor that will contain other actors

Hello, is there a way to make an actor that moves that contains other actors that move? I am trying to make a game where the player tries to shake out coins from a piggy bank and the pig is the hollow actor and the coins are the other actors. Also is it possible for the container to have a slot where actors can come out of the container actor, like the slot in a piggy bank?

Thanks

Comments

  • GnarlyGnarly canadaMember Posts: 840

    You are going to have to add more details. Are coins visible in hollow pig?
    Or if something happens coins appear to shake out of the pig bank hole?

    I think you want the effect? Actors can not contain other actors literally but can spawn them when needed.

  • chaowalicechaowalice Member, PRO Posts: 4
    edited September 2015

    ah sorry, something like this?

    and yes the coins appear to be in the pig until shaken out

    and i guess i dont actually need the coins to be in the pig but is there something like coins can only move when overlapped with the pig? until shaken out?

  • frdfrd Member Posts: 191

    You can use invisible walls to contain the coins, with a gap at the slot. You'd have to constrain these walls to their positions around the pig.

  • GnarlyGnarly canadaMember Posts: 840

    So you shake the pig and try and get the coins out??? Then I would do frd suggestion. Invisible actors that act like walls around the pig. Collide rule with the coins but leave no walls where the coins would fall out...........

    Is this game play or effect?

  • chaowalicechaowalice Member, PRO Posts: 4
    edited September 2015

    yup, the gist is you shake the pig and coins fall out

    i thought when constraining an actor to another moving actor, the movement would cause some delay so in this case the invisible boundaries and the pig would not move in sync??

    but it's a good suggestion and i'll try it out

    what does game play or effect mean?

    thanks for the help!!

    also is there a way to combine/merge a bunch of actors into one lol

  • GnarlyGnarly canadaMember Posts: 840

    Game play means you control the shake or player is doing something to pig or coins.

    An "effect" is something you just watch.

    Moving a player is game play. When it blows up into tiny pieces is an effect.

  • chaowalicechaowalice Member, PRO Posts: 4

    oh then game play.

    if i constrain a bunch of actors to another's movement, will that produce a lot of lagging??

  • frdfrd Member Posts: 191

    It should be fine.

Sign In or Register to comment.