Not sure if I’m doing this wrong or if the function is bugged, so apologies if this isn’t the right place. Tried to search the forum but couldn’t find anything.
I try to load a new gif into a previously created imagetable that has the same frames size and number of frames, but the function returns an error.
This is how I do it. First I create an image table:
Distant_Waves_ImageTable = gfx.imagetable.new('assets/images/environment/waves_distant_1.gif')
Then I try to replace it with a new one:
Distant_Waves_ImageTable:load('assets/images/environment/waves_distant_2.gif')
But I get: assets/images/environment/waves_distant_2.gif not found: No such file
I tried to create an empty table with the number of frames:
Distant_Waves_ImageTable = gfx.imagetable.new(29)
I get the same message. The documentation mentions something about allocating the memory with count, [cellsWide], [cellSize] arguments but I don’t quite understand how this works, or if this has anything to do with the function not loading, because the error says it doesn’t find the file.
I’d appreciate help on this.
Thanks