Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Tables with attributes after the dot won't return more lengths

AnatolyAnatoly Mod
in Bugs Posts: 891
    effect = {}
    effect.speed = false
    effect.doubleScore = false
    effect.moreLifes = 0

Returns nil. How to fix?


  • IgnatzIgnatz Mod
    Posts: 5,396

    Read up on how tables work. # only works with numbered table items, eg

    print(#t) --prints 2, ignores the abc item
  • dave1707dave1707 Mod
    Posts: 9,279

    Do a forum search for table length. You'll find plenty of answers.

  • AnatolyAnatoly Mod
    Posts: 891

    Ok, thanks. Then I would like to know where to find @Ignatz's handbook. I would like to look about physics, or better explained, how to change the Edge's strokeWidth???

Sign In or Register to comment.