Search found 286 matches

by Sir_Silver
Sun Jan 14, 2018 3:13 pm
Forum: Support and Development
Topic: Enemy Bullet Error
Replies: 1
Views: 2381

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...
by Sir_Silver
Sat Jan 13, 2018 2:41 pm
Forum: Support and Development
Topic: MULTIPLAYER ONLINE GAME - how to do?
Replies: 10
Views: 18138

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.
by Sir_Silver
Fri Jan 05, 2018 1:42 pm
Forum: Support and Development
Topic: Yet another saving/loading question
Replies: 3
Views: 1943

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...
by Sir_Silver
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: 4028

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

=)
by Sir_Silver
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: 4028

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 ...
by Sir_Silver
Tue Jan 02, 2018 2:07 am
Forum: General
Topic: MoonScript & love
Replies: 35
Views: 27245

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.
by Sir_Silver
Fri Dec 22, 2017 1:36 am
Forum: General
Topic: Basic Platformer Tutorial Series On YouTube
Replies: 10
Views: 10315

Re: Basic Platformer Tutorial Series On YouTube

Pretty cool stuff there, keep it up!
by Sir_Silver
Tue Dec 12, 2017 3:10 pm
Forum: Support and Development
Topic: Layer order
Replies: 8
Views: 4605

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)
by Sir_Silver
Thu Nov 30, 2017 5:31 am
Forum: Support and Development
Topic: Font density
Replies: 8
Views: 5732

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...