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

  • #10, by dionousWednesday, 24. May 2017, 14:21 7 years ago
    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

    246 Posts


  • #11, by ke4Wednesday, 24. May 2017, 14:26 7 years ago
    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 dionousWednesday, 24. May 2017, 15:47 7 years ago
    Yeap, that works, thanks!

    Forum Fan

    246 Posts