Search found 62 matches

by stout
Fri Nov 02, 2012 8:09 pm
Forum: Support and Development
Topic: (Resolved)Basic camera stuff (was: tile scrolling problem)
Replies: 6
Views: 515

(Resolved)Basic camera stuff (was: tile scrolling problem)

EDIT: this part is solved, see post further down for current issue The problem: I'm a dummy, and am missing something incredibly obvious. for rowIndex,row in ipairs(worldMap) do for columnIndex,quadID in ipairs(row) do local x,y = (columnIndex-1)*TileW, (rowIndex-1)*TileH love.graphics.drawq(Tileset...
by stout
Fri Nov 02, 2012 1:59 am
Forum: Support and Development
Topic: Enemies work, no bosses?
Replies: 5
Views: 605

Re: Enemies work, no bosses?

I'm going to poke at it more tomorrow, probably, if you or someone else doesn't get this sorted, but: the issue is @ line 391 in foe.lua, like the error log says. The code itself is fine, except.. it's being called in an update function. It's CONSTANTLY trying to remove the boss from the table, even...
by stout
Thu Nov 01, 2012 6:59 pm
Forum: Support and Development
Topic: Enemies work, no bosses?
Replies: 5
Views: 605

Re: Enemies work, no bosses?

If the forum complains about size, can you upload the file to a public dropbox folder or something? (you have a lot of images, so just copy-pasting the code onto our location machines won't do any good, and it's easier to see the thing in action)
by stout
Thu Nov 01, 2012 6:25 pm
Forum: Support and Development
Topic: Checking to see if table elements exist, then do a thing
Replies: 8
Views: 611

Re: Checking to see if table elements exist, then do a thing

gentest2.png Success! for i,mt in ipairs(mountains) do -- start plains for pt = -3,3 do if worldMap[mt.y + pt] then for count = -3,3 do if worldMap[mt.y + pt][mt.x - count] then worldMap[mt.y + pt][mt.x - count] = 2 end end end end end -- ending plains for i,mt in ipairs(mountains) do -- start hill...
by stout
Thu Nov 01, 2012 3:45 pm
Forum: Support and Development
Topic: Checking to see if table elements exist, then do a thing
Replies: 8
Views: 611

Re: Checking to see if table elements exist, then do a thing

Okay that SEEMED like it made perfect sense but I'm staring at it and testing it more and.. now I'm not so sure. Also, it still crashes; you can press r to refresh with new values, and if you do that a dozen times or so, it should eventually die with the same problem as before. if worldMap[mountains...
by stout
Thu Nov 01, 2012 2:11 pm
Forum: Support and Development
Topic: Checking to see if table elements exist, then do a thing
Replies: 8
Views: 611

Re: Checking to see if table elements exist, then do a thing

AHHHHH. That makes perfect sense. Thank you! (also explains why, when it works, it works wonky.. but I should already know how to fix that, so, yay)
by stout
Thu Nov 01, 2012 1:25 pm
Forum: Support and Development
Topic: Checking to see if table elements exist, then do a thing
Replies: 8
Views: 611

Re: Checking to see if table elements exist, then do a thing

substitute: yep, that's it. Sorry for not providing a better example! I'm trying to figure out some world generation ideas and want to use the mountains as locus points from which the rest of the terrain is made.

Robin: no dice. Here's the .love. Relevant lines are 108-112.
by stout
Thu Nov 01, 2012 5:33 am
Forum: Support and Development
Topic: Checking to see if table elements exist, then do a thing
Replies: 8
Views: 611

Checking to see if table elements exist, then do a thing

for i = 1,9 do if worldMap[mountains[i].y + i][mountains[i].x + i] then -- if this index exists then worldMap[mountains[i].y + i][mountains[i].x + i] = 2 -- only changing "diagonals" but that's fine for this test end end So if worldMap[2 + 1][8 +1] - translated to worldMap[3][9] - exists, set its v...
by stout
Tue Oct 30, 2012 10:50 pm
Forum: Support and Development
Topic: a way to overwrite a color
Replies: 12
Views: 1547

Re: a way to overwrite a color

What i am trying to achive is that when i draw the transparent square (the black one) over the red one, it'll make it so you cant see the red one, but see the background. alpha1 = 255 function love.draw() love.graphics.setBackgroundColor(255,255,255) -- set background color to white so we can see w...
by stout
Tue Oct 30, 2012 8:10 pm
Forum: Support and Development
Topic: a way to overwrite a color
Replies: 12
Views: 1547

Re: a way to overwrite a color

Can you describe what effect you're trying to achieve? We might be able to better understand it. Are you trying to do something like an x-ray view? function love.draw() love.graphics.setColor(255,0,0) -- set the drawing color to red love.graphics.rectangle("fill",100,100,100,100) -- draw a square (r...