Search found 286 matches
- Sun Jan 14, 2018 3:13 pm
- Forum: Support and Development
- Topic: Enemy Bullet Error
- Replies: 1
- Views: 2419
Re: Enemy Bullet Error
I've pulled up your code in an editor and after messing with it for a little while, I found more questions than answers. On of the first things I noticed was that you needed to put if love.keyboard.isDown('e') then enemy.fire() end inside of love.update. That begs the next question though, why is th...
- Sat Jan 13, 2018 2:41 pm
- Forum: Support and Development
- Topic: MULTIPLAYER ONLINE GAME - how to do?
- Replies: 10
- Views: 18595
Re: MULTIPLAYER ONLINE GAME - how to do?
I was able to create a multiplayer game in love within 1 week using https://github.com/camchenry/sock.lua.
- Fri Jan 05, 2018 1:42 pm
- Forum: Support and Development
- Topic: Yet another saving/loading question
- Replies: 3
- Views: 1961
Re: Yet another saving/loading question
I think that begs the question, how is it that you're currently saving/loading chunks? It's hard to answer this because I'm not sure what the structure of a chunk is in the context of your game. Also, I think that having one save file for all "chunks" is probably better than individualizin...
- Fri Jan 05, 2018 9:52 am
- Forum: Support and Development
- Topic: If I require a large table, am I just passing the reference around?
- Replies: 7
- Views: 4075
Re: If I require a large table, am I just passing the reference around?
Close but not quite, it's more like:
money = not inDebt and 1000 or 0
variable = condition and value or else_value
=)
money = not inDebt and 1000 or 0
variable = condition and value or else_value
=)
- Fri Jan 05, 2018 9:43 am
- Forum: Support and Development
- Topic: If I require a large table, am I just passing the reference around?
- Replies: 7
- Views: 4075
Re: If I require a large table, am I just passing the reference around?
To your first question, yeah your just passing around the table's reference. To your second question, "and" is sort of like a compressed if statement, this example should help: local bool = true if bool then print("it's true") else print("it's either nil or false") end ...
- Tue Jan 02, 2018 2:07 am
- Forum: General
- Topic: MoonScript & love
- Replies: 35
- Views: 27571
Re: MoonScript & love
For me, it's because if I want to write something in Lua, it's pretty easy to just do that and not have to bother with anything more than that.
- Fri Dec 22, 2017 1:36 am
- Forum: General
- Topic: Basic Platformer Tutorial Series On YouTube
- Replies: 10
- Views: 10469
Re: Basic Platformer Tutorial Series On YouTube
Pretty cool stuff there, keep it up!
- Tue Dec 12, 2017 3:10 pm
- Forum: Support and Development
- Topic: Layer order
- Replies: 8
- Views: 4685
Re: Layer order
What Nixola has written seems like it would solve your issue!
I just wanted to chime in and say that I usually call setColor functions inside of my draw methods to avoid problems like this. (Assuming that this is a solution to the issue you're having)
I just wanted to chime in and say that I usually call setColor functions inside of my draw methods to avoid problems like this. (Assuming that this is a solution to the issue you're having)
- Sat Dec 09, 2017 4:12 pm
- Forum: Support and Development
- Topic: check for physics objects in certain area?
- Replies: 2
- Views: 1993
- Thu Nov 30, 2017 5:31 am
- Forum: Support and Development
- Topic: Font density
- Replies: 8
- Views: 5781
Re: Font density
When you say change the font density do you mean increase/decrease the space between each character in a string of text? There are no methods of a font object for handling that from what I can tell, I think the only solution is to use a different font with the density that you desire. Here's the Fon...