Forum rules - please read before posting.

Animation Clip (string?) Parameter

I'm trying to make an Action List that runs object's animations based on a variable, but do not know how to get a string parameter in the animation clip. For instance, I have two objects in a room named "Man" and "Food". I want to be able to enter a parameter into the action list, such as "farm" or "bakery", which run the "farm" and "bakery" animation clips on the objects, turning them into a Farmer/Apple and Baker/Loaf of bread respectively. 

Thanks for all the help. You guys at ICEBOX are great!

Comments

  • edited October 2016
    You're welcome.  Which animation engine does the character you're animating rely on, and specifically which field are you looking to override?

    I expect that's not currently possible, but it's a good suggestion and I will see it gets added in the next update.  In the meantime, you can use the Variable: Check Action to run different animation Actions accordingly.
  • I'm using the Sprites Unity method, and I'm trying to override the Clip field. In the mean time I'll just put in a little extra work.

    Basically:

    PARAMETER -> MyRoomSetup ActionList

    MyRoomSetup ActionList
    ---------------------------------

    |Action Type : Object ; Animate    |
    |Animation Engine: Sprites Unity |
    |Animator: Man                            |
    |Clip: PARAMETER                     |

    +

    |Action Type : Object ; Animate    |
    |Animation Engine: Sprites Unity |
    |Animator: Food                           |
    |Clip: PARAMETER                     |


  • OK, consider it in for the next update.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.