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

  • #10, z dionousWednesday, 24. May 2017, 14:21 hodinky 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?

    Fanoušek fóra

    246 Posts


  • #11, z ke4Wednesday, 24. May 2017, 14:26 hodinky 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

    Zabiják klíčů

    810 Posts

  • #12, z dionousWednesday, 24. May 2017, 15:47 hodinky 7 years ago
    Yeap, that works, thanks!

    Fanoušek fóra

    246 Posts