Search found 15 matches

by ziodice
Thu Feb 23, 2012 10:11 pm
Forum: Support and Development
Topic: Nothing happens when I call function in other script/file?
Replies: 19
Views: 10916

Re: Nothing happens when I call function in other script/fil

Now I get an error upon hitting "enter" (Or "return", I guess...). "Attempt to call global "lev1" (a nil value)
by ziodice
Thu Feb 23, 2012 10:00 pm
Forum: Support and Development
Topic: Nothing happens when I call function in other script/file?
Replies: 19
Views: 10916

Re: Nothing happens when I call function in other script/fil

lev1.lua local function lev1() print ("Working") levdraw() end function levdraw() love.graphics.clear() love.graphics.setColor(255, 0, 0) love.graphics.circle("fill", objects.ball.body:getX(), objects.ball.body:getY()) love.graphics.polygon("fill", objects.ground.shape:...
by ziodice
Thu Feb 23, 2012 9:54 pm
Forum: Support and Development
Topic: Nothing happens when I call function in other script/file?
Replies: 19
Views: 10916

Re: Nothing happens when I call function in other script/fil

Alright, so, I got the console to work (Thanks!) BUT, when I press enter, it does NOT produce the text I need it to. So, should I copy paste my entire "main.lua" and "lev1.lua"?
by ziodice
Thu Feb 23, 2012 9:18 pm
Forum: Support and Development
Topic: Nothing happens when I call function in other script/file?
Replies: 19
Views: 10916

Re: Nothing happens when I call function in other script/fil

Debugging with console? I'm sadly using ubuntu, and I read that console is windows only.
by ziodice
Thu Feb 23, 2012 9:00 pm
Forum: Support and Development
Topic: Nothing happens when I call function in other script/file?
Replies: 19
Views: 10916

Nothing happens when I call function in other script/file?

Uh...I hope I'm doing this right...so, I'm trying to make this ball/physics game where you control a ball, and you need to get to a certain spot on the level, and you can reverse gravity. So, I made a basic "level" where you can just move the ball around, and then I tried to make it so whe...