Search found 6 matches

by NigelNoscopes
Tue Dec 22, 2015 12:08 am
Forum: Support and Development
Topic: Several Game files
Replies: 8
Views: 5001

Re: Several Game files

I think OP was talking about require(). To organize your game files into different modules, you can just put a require('yourModuleName') at the top of your main.lua and it will carry over all your global variables/functions to main.lua as if it were all one file. When you require() a lua file, don't...
by NigelNoscopes
Sat May 30, 2015 5:45 pm
Forum: Support and Development
Topic: Help with character animation
Replies: 2
Views: 1360

Re: Help with character animation

Wow, you're an amazing help! I noticed the arms are a bit weird so I'll probably split them up into two different images. This clears everything up. Bonus points for the example!
by NigelNoscopes
Sat May 30, 2015 4:11 pm
Forum: Support and Development
Topic: Help with character animation
Replies: 2
Views: 1360

Help with character animation

I have these two images: http://i.imgur.com/JHgIaoF.png http://i.imgur.com/7XimH2q.png They're supposed to go together and the arms should point towards the mouse pointer. I'm not sure how to; 1. Move both the arms and body as one entity; 2. Pivot the arms so they look like they're attached. Anyone ...
by NigelNoscopes
Tue May 26, 2015 11:51 pm
Forum: Support and Development
Topic: Is there a good up-to-date tutorial for networking?
Replies: 2
Views: 1436

Is there a good up-to-date tutorial for networking?

I've been looking around the forums and can't find any good tutorial for networking other than the very confusing UDP tutorial on the wiki. All the other libraries' tutorials seem to be out of date.
by NigelNoscopes
Sun Mar 29, 2015 12:40 am
Forum: Support and Development
Topic: New to LÖVE, need some help with basic printing
Replies: 3
Views: 2017

Re: New to LÖVE, need some help with basic printing

Look at the example on the page for proper usage. Also, all graphics functions have to go under love.draw, not update. This is what you want: local debugInfo = false function love.update(dt) debugInfo = love.keyboard.isDown('p') -- the above is the same as: -- if love.keyboard.isDown('p') then -- d...
by NigelNoscopes
Sat Mar 28, 2015 8:53 pm
Forum: Support and Development
Topic: New to LÖVE, need some help with basic printing
Replies: 3
Views: 2017

New to LÖVE, need some help with basic printing

I know a sufficient amount of Lua to make things work. I'd like to have an option (similar to Minecraft) where the user can press a key and toggle a print function that prints debug info, such as the x and y coordinates of the player. I tried doing it like this: function love.keyboard.isDown('p') lo...