Search found 6 matches
- Sat Jun 06, 2015 4:22 pm
- Forum: Support and Development
- Topic: Moving an object from point A to B
- Replies: 4
- Views: 5254
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 = ...
- Sat Jun 06, 2015 1:58 pm
- Forum: Support and Development
- Topic: Moving an object from point A to B
- Replies: 4
- Views: 5254
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:
but I got the same result as before.
Code: Select all
X = X + dX * speed * dt;
Y = Y + dY * speed * dt;
- Sat Jun 06, 2015 1:02 pm
- Forum: Support and Development
- Topic: Moving an object from point A to B
- Replies: 4
- Views: 5254
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 ...
- Tue Feb 10, 2009 2:45 pm
- Forum: Support and Development
- Topic: Checking mouse pos (Click button)
- Replies: 2
- Views: 3203
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.
- Tue Feb 10, 2009 2:14 pm
- Forum: Support and Development
- Topic: Checking mouse pos (Click button)
- Replies: 2
- Views: 3203
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...
- Tue Feb 10, 2009 9:59 am
- Forum: General
- Topic: How Did You Find (true) LÖVE?
- Replies: 55
- Views: 62513
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!
Hi btw, just registered, really promising "engine" I must say!