Search found 4 matches

by fkinCURRY
Thu Dec 20, 2018 11:39 am
Forum: Support and Development
Topic: Calling a function from inside a table inside a table
Replies: 2
Views: 2945

Calling a function from inside a table inside a table

Hey, I got stuck on a kinda tricky problem (atleast for me, since I never really used functions inside of tables) So I have tables called windowfunc and buttonfunc, buttonfunc is stored inside of windowfunc. There is windowfunc[1] and windowfunc[2], buttonfunc[1-3] in each. How can I call a function...
by fkinCURRY
Thu Nov 29, 2018 10:36 pm
Forum: Support and Development
Topic: Removing items from table doesn't work
Replies: 3
Views: 3480

Re: Removing items from table doesn't work

Many thanks for the replies. It seems to be working properly now.
by fkinCURRY
Thu Nov 29, 2018 1:06 pm
Forum: Support and Development
Topic: Removing items from table doesn't work
Replies: 3
Views: 3480

Removing items from table doesn't work

When the code runs, the cubes aren't disappearing after their ttl is larger than 100 (if it even counts) for i,v in ipairs(cubes.cube) do if v.y < height - 20 then v.y = v.y + cubes.speed else if v.ttl > ttlg then table.remove(cubes.cube, i) end end v.ttl = v.ttl + 1 end When I moved the table.reomv...