Search found 113 matches

by Vimm
Thu Apr 14, 2016 9:41 pm
Forum: General
Topic: Should I take the time to fully learn lua?
Replies: 4
Views: 3150

Should I take the time to fully learn lua?

So I've never actually studied lua before jumping into LOVE, and have kind of just been learning what I need as I go. Would it be worth it to take the time and learn to language completely, or just keep doing what I've been doing? (This is probably the video I'd watch if I were to learn the language...
by Vimm
Wed Apr 13, 2016 1:41 am
Forum: Support and Development
Topic: Questions about scrolling (and platforming)
Replies: 10
Views: 4561

Re: Questions about scrolling (and platforming)

I'm extremely close to getting it. Though there seems to be one issue: I can't seem to figure out how to have the second image move by 3 while reseting to 0, since it will just end up at -3 (Since it thinks I'm telling it to remove 3 from the X coordinates, rather then telling it to translate by 3)...
by Vimm
Mon Apr 11, 2016 8:43 pm
Forum: Support and Development
Topic: Getting distance
Replies: 9
Views: 5999

Re: Getting distance

first off, if I set rect1 and rect2's x and why values in load, how am I supposed to draw the rectangle and change the values. he didn't tell you to set them in love.load. If you do, then you need to make them global, otherwise you can leave them like this and keep it before love.update and draw. a...
by Vimm
Mon Apr 11, 2016 8:24 am
Forum: Support and Development
Topic: Collision with walls
Replies: 5
Views: 6048

Re: Collision with walls

Hi im trying to do collision with walls myself but its just hitting the fan. It works kinda, but when i add more walls it just goes to shit. Could anyone offer any help? Im not the best coder and my head is just melting trying to solve this. The problem i think is because of the two "left"...
by Vimm
Sat Apr 09, 2016 7:54 pm
Forum: Support and Development
Topic: Getting distance
Replies: 9
Views: 5999

Re: Getting distance

first off, if I set rect1 and rect2's x and why values in load, how am I supposed to draw the rectangle and change the values. he didn't tell you to set them in love.load. If you do, then you need to make them global, otherwise you can leave them like this and keep it before love.update and draw. a...
by Vimm
Sat Apr 09, 2016 7:13 pm
Forum: Support and Development
Topic: Getting distance
Replies: 9
Views: 5999

Re: Getting distance

The easiest solution would be to not use love.physics, and do this: local rect1 = {0,0,50,50} local rect2 = {500,500,50,50} local mindistance = 100 local maxdistance = 400 local mincolor = {255,255,255} local maxcolor = {0,0,64} local color = {0,0,0} -- in love.update: -- rectangle center points lo...
by Vimm
Sat Apr 09, 2016 6:43 pm
Forum: Support and Development
Topic: Why is my program doing this?
Replies: 15
Views: 5351

Re: Why is my program doing this?

GhostAction wrote:I couldn't get it to be a .love so I just attached main.lua and the server file as well:
what do you mean you couldnt get it to be a .love? you just put the files into a zip and then rename the .zip to .love
by Vimm
Sat Apr 09, 2016 4:28 am
Forum: Support and Development
Topic: Why is my program doing this?
Replies: 15
Views: 5351

Re: Why is my program doing this?

just attach the .love file, dont post all the code lol, its easier that way
by Vimm
Sat Apr 09, 2016 4:27 am
Forum: Support and Development
Topic: wait()
Replies: 8
Views: 13327

Re: wait()

I wouldn't recommend using love.timer.sleep at all. It'll freeze your game for the duration of it, and it won't show the first face. What you're probably looking for is a timer. Here's a simple way to do your example: function love.load() -- load face images face1 = love.graphics.newImage(...) face...
by Vimm
Sat Apr 09, 2016 4:13 am
Forum: Support and Development
Topic: Getting distance
Replies: 9
Views: 5999

Getting distance

I want to make my games background become a darker shade of red the closer one rectangle is to another, and become more white the farther they are, but I dont know how to use love.physics.getDistance(), and dont know how to properly set the background the way i want it. Can anyone lend a hand?