Thanks! You just saved me a bunch of code!SudoCode wrote:https://love2d.org/wiki/Source:setLooping
Search found 44 matches
- Thu May 17, 2012 12:15 am
- Forum: Support and Development
- Topic: getting music on a loop
- Replies: 2
- Views: 2518
Re: getting music on a loop
- Wed May 16, 2012 11:52 pm
- Forum: Support and Development
- Topic: getting music on a loop
- Replies: 2
- Views: 2518
getting music on a loop
I've got a game, and music for it, but I cant find an efficient way to get it on a loop. I could set up a timer for the duration of the song, and when it reaches 0 play the song again, but that's a lot of code, and I thought that there might be an easier way with less code. Anyone know of anything? ...
- Mon May 07, 2012 2:30 am
- Forum: Support and Development
- Topic: Decrementing The Counter
- Replies: 4
- Views: 1745
Re: Decrementing The Counter
Well, enumerating is basically the ability to count how many things are in a table. All you have to type is this: # enemies And it tells you how many objects are in a table. More info here: http://lua-users.org/wiki/TablesTutorial So, you could modify your code like this: state = 0 -- 0 = menu, 1 =...
- Thu May 03, 2012 12:57 am
- Forum: Support and Development
- Topic: Decrementing The Counter
- Replies: 4
- Views: 1745
Re: Decrementing The Counter
lol I feel so stupid! emeny! wtf is that! thanks I can't believe that was the problem.
I stated previously that i was a noob to this, so I don't really know what you mean about enumerating. The counter was my idea for counting the enemies.
I stated previously that i was a noob to this, so I don't really know what you mean about enumerating. The counter was my idea for counting the enemies.
- Wed May 02, 2012 11:01 pm
- Forum: Support and Development
- Topic: Decrementing The Counter
- Replies: 4
- Views: 1745
Decrementing The Counter
I have a simple game, in which the point is to contain the aliens. six aliens spawn every three seconds, and you shoot them. Right now, I have a timer incrementing by six every three seconds along with the enemies spawning, and what I want is for the timer to decrement by 1 every time you kill an en...
- Sat Apr 14, 2012 4:22 am
- Forum: Support and Development
- Topic: Spawning Enemies Every Second
- Replies: 9
- Views: 5216
Spawning Enemies Every Second
I'm making this game, and I want enemies to spawn every second. I tried to do this using the sleep function, but I can't seem to get it quite right. please help part of my code from the load function (did not work): for i=0,7 do enemy = {} enemy.width = 30 enemy.height = 30 enemy.x = i * (enemy.widt...
- Mon Dec 05, 2011 4:56 am
- Forum: Games and Creations
- Topic: Love for zombies
- Replies: 50
- Views: 26856
Re: Love for zombies
Love it! Great job!
- Mon Dec 05, 2011 3:50 am
- Forum: Support and Development
- Topic: How to make .exe
- Replies: 7
- Views: 7080
How to make .exe
I have a small game I am planning on releasing soon, and in order to release it to people who don't have love 2d and lua installed on their computer, I need to release it as some sort of .exe file. How is this done?
Thanks.
Thanks.
- Mon Nov 28, 2011 12:46 am
- Forum: Support and Development
- Topic: camera movement?
- Replies: 5
- Views: 2302
Re: camera movement?
You can translate the point of view with: function love.draw() love.graphics.push() love.graphics.translate(x,y) -- draw all the things here love.graphics.pop() If you want a better camera you can use a library, like http://nova-fusion.com/2011/05/09/cameras-in-love2d-part-3-movement-bounds/ for ex...
- Sun Nov 27, 2011 4:44 am
- Forum: Support and Development
- Topic: camera movement?
- Replies: 5
- Views: 2302
Re: camera movement?
sorry but i really want an answer so bump...
Please help
Please help