Search found 4 matches
- Fri May 29, 2020 11:35 pm
- Forum: Games and Creations
- Topic: I have a problem with lag
- Replies: 8
- Views: 8817
Re: I have a problem with lag
NOTE: I started with 1 instead of 0 because tables don't reference 0 values. So I guess you have to rename the images starting from "1" instead of "0". table methods indeed usually ignore what's at the 0th key (#, ipairs, etc. won't give "correct" results), but it's st...
- Fri May 29, 2020 11:32 pm
- Forum: Games and Creations
- Topic: I have a problem with lag
- Replies: 8
- Views: 8817
Re: I have a problem with lag
Woohoo! Now time for me to provide a sample solution of what to do instead: function love.load() stageTime = 0 stageState = "1" -- I'm replacing your "stage = none" with this: -- Step 1: (A table of stages) stages = {} -- Step 2: Insert all your 30 images in that table. for i = ...
- Fri May 29, 2020 10:27 pm
- Forum: Games and Creations
- Topic: I have a problem with lag
- Replies: 8
- Views: 8817
Re: I have a problem with lag
I don't know how i haven't seen this.zorg wrote: ↑Fri May 29, 2020 4:08 am Hi and welcome to the forums!
The gigantic yellow warning box on the page for love.graphics.newImage should tell you your mistake.
Also, do use the dt variable so that your thing runs consistently with regards to time.
- Thu May 28, 2020 6:19 pm
- Forum: Games and Creations
- Topic: I have a problem with lag
- Replies: 8
- Views: 8817
I have a problem with lag
First of all, i have not a perfect english, so sorry for my posible mistakes. Hello, i'm new at Lua and LOVE2d and i'm starting with a practice (here's how i learn ^^ ) and when i was ending i programmed an animated background and when i started the game it was very lag(more than the last way i star...