My error is:
main.lua:31: attempt to get length of global 'all_rocks' (a nil value)
Traceback
main.lua:31: in function 'update'
[C]: in function 'xpcall'
Search found 28 matches
- Mon Oct 15, 2012 9:24 pm
- Forum: Support and Development
- Topic: Whats wrong with my code?
- Replies: 9
- Views: 4432
- Sun Oct 14, 2012 1:46 pm
- Forum: Support and Development
- Topic: Whats wrong with my code?
- Replies: 9
- Views: 4432
Whats wrong with my code?
This is my attempt to make a Boulder drop. I have no idea what is wrong with it. main.lua function love.load() require ("Rock") require ("anal") RockMoveS = 180 RockMoveX = 355 RockMoveY = 255 rockbarf = love.graphics.newImage("Rock.png") Rockmonster = love.graphics.new...
- Thu Sep 27, 2012 12:22 pm
- Forum: General
- Topic: Will there ever be a wirless multiplayer?
- Replies: 13
- Views: 3438
Will there ever be a wirless multiplayer?
The title speaks for itself ![Mega Grin :megagrin:](./images/smilies/ms-megagrin.png)
![Mega Grin :megagrin:](./images/smilies/ms-megagrin.png)
- Wed Sep 26, 2012 10:16 pm
- Forum: Support and Development
- Topic: How do you make stuff move by itself?
- Replies: 3
- Views: 1340
Re: How do you make stuff move by itself?
In the love.update, every time I type "do" it will think love.draw is a part of love.update. I don't know if its the code, or just a glitch. Either way, this code doesn't work ![Sad :(](./images/smilies/ms-sad.png)
![Sad :(](./images/smilies/ms-sad.png)
- Wed Sep 26, 2012 8:49 pm
- Forum: Support and Development
- Topic: How do you make stuff move by itself?
- Replies: 3
- Views: 1340
How do you make stuff move by itself?
I made my game so when you press the spacebar, a boulder would drop from my character. I got a boulder to appear where my character is, but now I want it to fall. (This game is like those games like pacman where there's no gravity. Here's my code if you need it. The boulder thing is in the love.upda...
- Tue Sep 25, 2012 8:40 pm
- Forum: Support and Development
- Topic: Tables atempt: Whats wrong with my code?
- Replies: 4
- Views: 3102
Tables atempt: Whats wrong with my code?
Love2d doesn't give me any signs that I did something wrong, but my screen keeps Going black! My code: Rock.lua Rocks = {} function Rocks_spawn(x, y, rock) table.insert(Rocks, {x= x, y = y, rock = rock}) end function Rocks_draw() for i,v in ipairs(Rocks) do love.graphics.setColor(0, 0, 0) love.graph...
- Tue Aug 21, 2012 12:38 am
- Forum: Support and Development
- Topic: Animations in Love.
- Replies: 10
- Views: 12969
Re: Animations in Love.
I saw the garb animation thing, and coded an animation myself and this is how it looks like. function love.load() require(anal) spritesheet = love.graphics.newImage("animationtest.png") spritesheet.setFilter("nearest", "nearest") animation = newAnimation(spritesheet, 20...
- Mon Aug 20, 2012 11:53 pm
- Forum: Support and Development
- Topic: Collision help?
- Replies: 1
- Views: 815
Collision help?
Need help with making collision, platforms and stuff like that. Can anyone explain how to do it? ![Awww :3](./images/smilies/ms-three.png)
![Awww :3](./images/smilies/ms-three.png)
- Fri Apr 27, 2012 8:36 pm
- Forum: Support and Development
- Topic: help with animation
- Replies: 11
- Views: 7414
Re: help with animation
I still don't get it...
- Tue Apr 24, 2012 7:57 pm
- Forum: Support and Development
- Topic: help with animation
- Replies: 11
- Views: 7414
Re: help with animation
I don't get how to make the grids.