Search found 3 matches

by kostavanga
Thu Aug 24, 2023 11:56 pm
Forum: General
Topic: How to make function for images?
Replies: 5
Views: 1428

Re: How to make function for images?

BrotSagtMist wrote: Thu Aug 24, 2023 11:41 pm I dont see why you created the variable _times_ here.
Without this, the code should just work.
Thank you very much for your answer! It is working!!!!
by kostavanga
Thu Aug 24, 2023 11:10 pm
Forum: General
Topic: How to make function for images?
Replies: 5
Views: 1428

Re: How to make function for images?

You will need a tweening library or an animation library to properly loop over all frames. Also you might need to reset timer (times variable) when loop finishes. I don't think this is about animations. I guess they want to load all images from some directory into table and then via loop through al...
by kostavanga
Thu Aug 24, 2023 4:48 pm
Forum: General
Topic: How to make function for images?
Replies: 5
Views: 1428

How to make function for images?

I am new to programming. Therefore, I can't code a function that .draw images automatically when they are in the folder. function maker() AllImgFiles = love.filesystem.getDirectoryItems(dir) local n = 1 while n <= (#AllImgFiles) do table.insert(newdir, dir .. AllImgFiles[n]) table.insert(img, love.g...