Search found 100 matches

by keharriso
Fri May 24, 2024 9:17 pm
Forum: Support and Development
Topic: [ SOLVED ] Having a problem with putting a function into a list
Replies: 2
Views: 187

Re: Having a problem with putting a function into a list

I think you're missing an equals sign.

You want

Code: Select all

textsFunctions = {F1}
by keharriso
Sun May 05, 2024 2:40 pm
Forum: Support and Development
Topic: Need Help with a Simplegametutorials Snake Game
Replies: 2
Views: 1143

Re: Need Help with a Simplegametutorials Snake Game

Hello! The problem looks like a typo. You are using "nextXpos" and "nextYpos" instead of "newXpos" and "newYpos". You need to replace this: for segmentIndex, segment in ipairs(snakeSegments) do if segmentIndex ~= #snakeSegments and nextXPos == segment.x and ne...
by keharriso
Sun Apr 21, 2024 5:55 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 1205

Re: Mapping

Todespreis wrote: Sun Apr 21, 2024 5:52 pm It's working fine now, thank you!
Glad to help :nyu:
by keharriso
Sun Apr 21, 2024 5:39 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 1205

Re: Mapping

This code here, in love.load: num_tiles = 60 tiles = {} for i = 1, num_tiles do tiles[i] = love.graphics.newImage("/DungeonTiles01/" .. string.format("%02d", i) .. ".png") end should be replaced with this code (which you currently have in love.draw): tiles = {} for _, r...
by keharriso
Sun Apr 21, 2024 4:39 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 1205

Re: Mapping

If you share your code as a .love file I can hopefully find exactly where your problem is.
by keharriso
Sun Apr 21, 2024 4:32 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 1205

Re: Mapping

Todespreis wrote: Sun Apr 21, 2024 4:25 pm Exactly! But your code is'nt working. I get the same error ^^
Hello, would you mind sharing the error you get?
by keharriso
Sun Apr 21, 2024 4:08 pm
Forum: Support and Development
Topic: [SOLVED] Mapping
Replies: 11
Views: 1205

Re: Mapping

If I understand correctly, you're trying to load images for tiles that don't exist, like 01.png To solve this, you can iterate over your tilemap to pick out the tiles that are actually used: tiles = {} for _, row in ipairs(tilemap) do for _, tile in ipairs(row) do if tiles[tile] == nil then tiles[ti...
by keharriso
Sun Apr 07, 2024 12:18 am
Forum: General
Topic: Lua
Replies: 2
Views: 1806

Re: Lua

You need to pass the scale twice, one for X and one for Y:

Code: Select all

love.graphics.draw(PlaImg, posX, posY, rot, tam, tam, ori, ori)
by keharriso
Sun Mar 03, 2024 2:18 pm
Forum: Support and Development
Topic: Can a non-Windows peep test my love file?
Replies: 8
Views: 4403

Re: Can a non-Windows peep test my love file?

For Linux, you can very easily set up a VM to do your testing. Look into installing and hosting Linux on Virtual Box.