Search found 6 matches

by pincholinco
Tue Jun 14, 2016 10:42 am
Forum: Support and Development
Topic: keep geting nill for the monsters global but idk why plz have a look at my code
Replies: 14
Views: 5218

Re: keep geting nill for the monsters global but idk why plz have a look at my code

plz if you are not going to help with the issue or try too by running the code plz don't post on this thread I can run the code I gave you perfectly the error is on the title of the thread and if u want to know the line it is line 115 and I do use the char on the main lua by updating the player tabl...
by pincholinco
Thu Jun 09, 2016 2:47 pm
Forum: Support and Development
Topic: keep geting nill for the monsters global but idk why plz have a look at my code
Replies: 14
Views: 5218

Re: keep geting nill for the monsters global but idk why plz have a look at my code

those are all the files of my game code and tried what you suggested but it didn't work I am still getting nil for "monsters"
by pincholinco
Thu Jun 09, 2016 2:36 pm
Forum: Support and Development
Topic: keep geting nill for the monsters global but idk why plz have a look at my code
Replies: 14
Views: 5218

Re: keep geting nill for the monsters global but idk why plz have a look at my code

thank you and I have another file that is the char.lua file and on that file I use local char = {} and it works why does the enemy doesn't ?

and also what is indenting ?
by pincholinco
Thu Jun 09, 2016 11:27 am
Forum: Support and Development
Topic: keep geting nill for the monsters global but idk why plz have a look at my code
Replies: 14
Views: 5218

Re: keep geting nill for the monsters global but idk why plz have a look at my code

I don't understand because I used require for the enemy module therefore the enemy should be loading and also don't have any processes to set the table "monsters" to a nil value therefore it should be working I think could you guys have a look at the code and try to figure out what is wron...
by pincholinco
Thu Jun 09, 2016 10:19 am
Forum: Support and Development
Topic: keep geting nill for the monsters global but idk why plz have a look at my code
Replies: 14
Views: 5218

keep geting nill for the monsters global but idk why plz have a look at my code

this is main.lua local anim8 = require 'anim8' local enemy = require "enemy" local char = require "char" function love.load() --WORLD-- function CheckCollision(x1,y1,w1,h1, x2,y2,w2,h2) return x1 < x2+w2 and x2 < x1+w1 and y1 < y2+h2 and y2 < y1+h1 end world = love.physics.newWor...