Reusing animations/objects

  • #1, by konrad-rSunday, 06. December 2020, 20:10 3 years ago
    Hi,

    I am looking for good solutions for following problems. Let's say that I want to:

    1. reuse animated elements across scenes (e.g. parts of background)
    2. reuse animated element in single scene (e.g. create a crowd of animated people)
    3. preferably use skeletal animation to animate background elements (so that's I don't need to rely on large numbers of bitmaps)

    Are there any good practices to do these in VS.

    Looks like for 3. I would have to create characters anyway (I don't see an option to add Spine animations to objects).
    Even so, I don't see a way to reuse object or character definition. Seems to me that I need to duplicate objects/characters manually, is that correct?

    PS. Note that I'm asking about VS solutions (e.g. I might try to create animations containg multiple objects in Spine thus reusing assets)

    Newbie

    3 Posts


  • #2, by afrlmeSunday, 06. December 2020, 21:06 3 years ago
    Simon implemented an object duplication function into the engine a while back that's lets you duplicate scene objects via script, I believe it should also include any images/animations/actions belonging to the scene object as well. I've not used it myself yet, so I can't provide an example of how to use it. But here's the documentation/example for it that's available on Simon's luadocs page.

    VS doesn't have any support for tiling/sprite sheets, so you would likely have sort it out manually or maybe use the duplication method I mentioned above.

    As for sprite part animations, I'm sure there was a way to add them to scene objects, but I could be mistaken. I know that 3D models can only be created as characters. Isn't the model path on the properties tab for scene objects where you can link spine animations? To be honest I have no idea what that section is for - again, not something I've personally used myself.

    Imperator

    7278 Posts