Search found 6 matches

by Frostfalk
Sat Jun 06, 2015 4:22 pm
Forum: Support and Development
Topic: Moving an object from point A to B
Replies: 4
Views: 1960

Re: Moving an object from point A to B

Oh yeah that's right, thanks for pointing that out Bluewolf. I did a bit of extra research and found out that I need to normalize the vector before I can move the object along the line the way I want it. I rewrote it and now it works like I want it to: function love.load() X = 250; -- initial X Y = ...
by Frostfalk
Sat Jun 06, 2015 1:58 pm
Forum: Support and Development
Topic: Moving an object from point A to B
Replies: 4
Views: 1960

Re: Moving an object from point A to B

How do you use that method when moving a point from one place to another. in myexample, the distance from x1 to x2 is not the same as y1 to y2. I tried this:

Code: Select all

X = X + dX * speed * dt;
Y = Y + dY * speed * dt;
but I got the same result as before.
by Frostfalk
Sat Jun 06, 2015 1:02 pm
Forum: Support and Development
Topic: Moving an object from point A to B
Replies: 4
Views: 1960

Moving an object from point A to B

Hi! I'm currently trying to get into game programming again and I'm having a bit of a problem at the moment. I'm trying to move a rectangle from point A to point B and it sort of works but the rectangle accelerate and deaccelerate instead of moving in a constant speed from A to B. Here's my code in ...
by Frostfalk
Tue Feb 10, 2009 2:45 pm
Forum: Support and Development
Topic: Checking mouse pos (Click button)
Replies: 2
Views: 1623

Re: Checking mouse pos (Click button)

Thanks, I took a deeper look into the callback and it seems my answer is in there. I didn't see it at first. I'll try again and report back if I encounter more trouble.
by Frostfalk
Tue Feb 10, 2009 2:14 pm
Forum: Support and Development
Topic: Checking mouse pos (Click button)
Replies: 2
Views: 1623

Checking mouse pos (Click button)

I did a quick search here on the forums and looked through the documentation. But I haven't found what I'm looking for. In the documentation, I saw only these commands: getX( ) Gets the current x-position of the mouse. getY( ) Gets the current y-position of the mouse. getPosition( ) Gets the current...
by Frostfalk
Tue Feb 10, 2009 9:59 am
Forum: General
Topic: How Did You Find (true) LÖVE?
Replies: 55
Views: 31411

Re: How Did You Find (true) LÖVE?

I find LÖVE on the game programming wiki's game engine list.

Hi btw, just registered, really promising "engine" I must say! ^^