License from €75 Log in
DE EN FR ES IT CZ

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

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 10 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?
  2. · 10 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
  3. · 10 years ago
    Yeap, that works, thanks!

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?