Has anyone tried to animate using a table

PortymanPortyman Member, PRO Posts: 409
I have an actor that can wear different clothing while walking and was wondering if you could use table values to pull the images dynamically instead of have an animation rule with images for every color possibility. Just looking for thoughts

Comments

  • VolontaArtsVolontaArts Member Posts: 510
    im pretty sure you can do it with tables. maybe with a timer changing the table column after ever 3seconds or whatever time you want.

    but explain what you want exactly because im not to sure what you mean.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited August 2013
    Why not pull the images directly with one expression i.e.:

    "character_walk_clothing_"..game.Colour Clothing."_frame_"..self.Frame No..".png"

    I'm guessing you'll still be creating images for every colour possibility?!
  • PortymanPortyman Member, PRO Posts: 409
    Let me give an example. I basically have a character walking in a red shirt so that's the anmiation. Its real simple and i use the animate rule drop the 3 images in and it works fine.
    The player can change the color of the shirt.
    If the character was a still image I could use a table and change its self.image using a change attribute rule and the characters shirt color would change . That's is also real simple.
    The catch is I want to animate the character and want to avoid having to use a bunhc of animate rules with each color possibility. I could use a rule that if color = red , then animate , but I would have to do it for each color.

    Te real question is Can I put a table expression into an animation rule.

  • VolontaArtsVolontaArts Member Posts: 510
    ok so you want him to do a different animation due to the color shirt hes wearing?
  • Asobu_GamesAsobu_Games PRO Posts: 261
    How about making the shirt a different actor that is constrained to the rest of the body. Like in cartoons how the face might be a static layer and only the eyes animate.

    You could make the shirt white and then add a color tint. That way you don't have to have a whole bunch of images for each color which can really bring up your file size if you are having lots of customizable options. Here is a good blog post I was reading just yesterday from the guy that did the art for Rogue Legacy. He did all the body/armor parts separate for this purpose.

    http://www.gamasutra.com/blogs/GlauberKotaki/20130812/198106/The_Art_of_Rogue_Legacy_or_quotwhy_less_is_morequot.php#comment212771
Sign In or Register to comment.