Search found 5 matches

by Willowton
Sat Jan 12, 2013 11:59 pm
Forum: Support and Development
Topic: Best way to check what a user has clicked
Replies: 1
Views: 1497

Best way to check what a user has clicked

I'm starting work on a fairly simple RTS, more so to advance my knowledge in Love and less so to make an amazing game. My question is- what is the best way to determine what a user has clicked on? My game is on a grid, so that helps simplify this problem. I've got one approaches which I feel might w...
by Willowton
Fri Dec 21, 2012 3:18 am
Forum: Support and Development
Topic: Running Lua Script in other Main
Replies: 4
Views: 3616

Re: Running Lua Script in other Main

Thank you so much for the help.

The script I'm loading dictates the motion of my character, so it's being called just about every frame. In that case, what do I want to use? require, or love.filesystem.load?
by Willowton
Thu Dec 20, 2012 9:35 pm
Forum: Support and Development
Topic: Running Lua Script in other Main
Replies: 4
Views: 3616

Running Lua Script in other Main

Whats the easiest way to run a function from a separate .lua file in a main method? I've been looking around for ages, and still haven't figured it out. I'm trying to load a file called "moveOtto.lua", and it contains only one function, called "moveOtto()". So I'm doing the follo...
by Willowton
Mon Dec 17, 2012 4:50 pm
Forum: Support and Development
Topic: New to Lua & Love- Simple Code Question
Replies: 2
Views: 2027

Re: New to Lua & Love- Simple Code Question

Thank you so much! I thought it might be something simple like that.
by Willowton
Mon Dec 17, 2012 4:16 pm
Forum: Support and Development
Topic: New to Lua & Love- Simple Code Question
Replies: 2
Views: 2027

New to Lua & Love- Simple Code Question

As the title stated, I'm pretty new to Love and the Lua language. I've been running through a bunch of tutorials, when I came across the following line of code: if v.y > 465 then Heres the link to the tutorial it came from: http://www.headchant.com/2010/12/31/love2d-%E2%80%93-tutorial-part-2-pew-pew...