Search found 13 matches

by tetsuken
Sat Aug 08, 2015 8:30 pm
Forum: General
Topic: Damage effect show problem!
Replies: 5
Views: 2737

Re: Damage effect show problem!

ty that same works perfectly :D i had found the mistake on the first attempt of inverse table remove, but your sample also work fine. :D actually i think is better then mine if effectlist ~= nil then for i = #effectlist, 1, -1 do -- i was make worng here using entitylist instead effectlist if effect...
by tetsuken
Sat Aug 08, 2015 7:29 pm
Forum: General
Topic: Damage effect show problem!
Replies: 5
Views: 2737

Re: Damage effect show problem!

I'm not to good on programming could give me an example? how to iterate backward? i try like this : function EffectUpdate(t) if effectlist ~= nil then for i = #effectlist, 1, -1 do if effectlist[i].time > effectlist[i].duration then -- problem here index nil continues table.remove(effectlist, i) els...
by tetsuken
Sat Aug 08, 2015 7:07 am
Forum: General
Topic: Damage effect show problem!
Replies: 5
Views: 2737

Damage effect show problem!

hello guys, i have a problem and i hope you can help me with it. I made a function to show damage above the enemies but its not working properly. here is the code with problem: function EffectUpdate(t) if effectlist ~= nil then for i=1,#effectlist do effectlist[i].time = effectlist[i].time + t*400 -...
by tetsuken
Thu Jul 16, 2015 12:55 am
Forum: General
Topic: Pathfind problem!
Replies: 0
Views: 966

Pathfind problem!

Hello guys i'm here again with some problems, if some one can help i will apreciate, thanks in advance. The problema consist of table index nil, monsterlist[turnCounter].path = CalcPath(CalcMoves(collisionmap, monsterlist[turnCounter].cx, monsterlist[turnCounter].cy, monsterlist[turnCounter].target....
by tetsuken
Fri Aug 22, 2014 5:08 am
Forum: General
Topic: Procedural next level crushing!
Replies: 2
Views: 1885

Re: Procedural next level crushing!

Ok guys i discovered what was wrong, i was not cleaning the matrix of the level before try create new rooms, and since the function check for collision before place de rooms that was no ending and crushing the game. Now its ok, im able to change level since i go over the stair. The next steps are : ...
by tetsuken
Fri Aug 22, 2014 2:19 am
Forum: General
Topic: Procedural next level crushing!
Replies: 2
Views: 1885

Procedural next level crushing!

Hello again! Guys im ina problem with my next level, its crushing the game ... i tryed some stuff but the problem persists and since im not professional i decided o ask for help. the problem is basic here: function love.update(dt) if nextlevel == true then createroom() nextlevel = false end end the ...
by tetsuken
Sun Jan 12, 2014 9:19 pm
Forum: General
Topic: 2D array ( table ) problem
Replies: 3
Views: 2326

Re: 2D array ( table ) problem

Ty Micha, i realised that, but before i was using a row table inside of level table, after some google research i realised i should make the level[x] a table it self.

Now my problem is another like overllaping rooms for my dungeon, but this will be another topic.

Ty very much
by tetsuken
Sun Jan 12, 2014 2:39 am
Forum: General
Topic: 2D array ( table ) problem
Replies: 3
Views: 2326

Re: 2D array ( table ) problem

A think i solved the problem ty community.

The solution is change row = {} by level[y] = {} , i think is this ty all
by tetsuken
Sun Jan 12, 2014 2:22 am
Forum: General
Topic: 2D array ( table ) problem
Replies: 3
Views: 2326

2D array ( table ) problem

Hello again community, I'm with some problems to define a value on a table inside a table. I'm using the command: level[1][row[1]] = 3 to try define especifically the 1st position of the row table inside the level table but what i'm getting is all the row elements becoming = 3. This is for procedura...
by tetsuken
Fri Nov 08, 2013 4:25 am
Forum: General
Topic: Overllaping matrices
Replies: 13
Views: 7736

Re: Overllaping matrices

Guys sorry for the late answer, i'm a seafare worker so sometimes i go on ship and when i come back 1 month or more has passed. Anyway, thats was a very hot topic i fought it could be and i apreciate all answers. VRLD i dont want an intersection of matrix only to know the numbers of the matrix, thin...