Menu
Login
Language
DE EN FR ES IT CZ
Back

Get the width (or height) of an animation frame with lua

  • #10, by dionous Wednesday, 24. May 2017, 14:21 9 years ago Quote
    Now we are getting somewhere (missed the grapchics. part, duh) , thanks Simon!

    It seems it works, so i tried to print the result in the log file and i got this:

    table: 0x0fa23c10

    Is this correct? I suppose this is another format for the rectacle size?

    Forum Fan

    250 Posts

  • #11, by ke4 Wednesday, 24. May 2017, 14:26 9 years ago Quote
    If you want the width add the .x at the end.

    graphics.getAnimationSize(ActiveAnimations["animation"]).x

    Or save it to a variable and then print var.x, var.y

    Key Killer

    810 Posts

  • #12, by dionous Wednesday, 24. May 2017, 15:47 9 years ago Quote
    Yeap, that works, thanks!

    Forum Fan

    250 Posts