Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

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

  • #10, by dionous 9 years ago Zitieren
    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?
  • #11, by ke4 9 years ago Zitieren
    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
  • #12, by dionous 9 years ago Zitieren
    Yeap, that works, thanks!