Search found 7 matches
- Sat Jun 01, 2013 1:25 am
- Forum: Support and Development
- Topic: New to love
- Replies: 3
- Views: 3968
Re: New to love
You want it to move to the mouse slowly then use something like this. function love.update (dt) angle = math.atan2((newY - imgY), (newX - imgX)) if imgX ~= newX or imgY ~= newY then imgX = imgX + (50 * math.cos(angle)) * dt imgY = imgY + (50 * math.sin(angle)) * dt end end function love.mousepressed...
- Fri May 31, 2013 9:26 pm
- Forum: Support and Development
- Topic: [solved] How i make UI D:
- Replies: 2
- Views: 2180
[solved] How i make UI D:
Hi, i don't i will have a problem with making a ui itself i just don't get how to attach it to the camera. I'm using the hump library for the cameras, but that's it because i don't really get what the rest of its for. Currently i have "ui" moving with the camera... But when ever the camera...
- Wed May 22, 2013 9:51 pm
- Forum: Support and Development
- Topic: [Solved] Need help with rotation.
- Replies: 8
- Views: 5292
Re: [Solved] Need help with rotation.
Thank you micha that equation is exactly what i was looking for.
Tanks to everyone else, mode7
Tanks to everyone else, mode7
- Tue May 21, 2013 8:39 pm
- Forum: Support and Development
- Topic: [Solved] Need help with rotation.
- Replies: 8
- Views: 5292
Re: Need help with rotation.
Feel free to ask if you don't understand a part or if it doesn't work as expected The ship is just spinning around counter clockwise :| i will just post the .love file. For doing thse things I'd strongly reccomend a vector library. HUMP has one and I'm using my own with operator overloading support...
- Mon May 20, 2013 12:31 am
- Forum: Support and Development
- Topic: [Solved] Need help with rotation.
- Replies: 8
- Views: 5292
Re: Rotate slowly to mouse.
So if the mouse is moved on for example the x axis the ship will rotate? Any axis. I want the ship to slowly turn towards the mouse so you cant just instantly turn around backward and blap something behind you. so lets say the angle the ship is is 1.8 rads and the desired angle is -2 rads how do i ...
- Sun May 19, 2013 11:57 pm
- Forum: Support and Development
- Topic: [Solved] Need help with rotation.
- Replies: 8
- Views: 5292
Re: Rotate slowly to mouse.
No one can help me?
- Sun May 19, 2013 9:25 pm
- Forum: Support and Development
- Topic: [Solved] Need help with rotation.
- Replies: 8
- Views: 5292
[Solved] Need help with rotation.
This is my 1st time posting on a forum so i don't really know if this is in the right section or what ever but... I just started using love2d this morning and been doing good using the documentation until a couple of minutes ago. I'm trying to make a 2d space combat game and i'm trying to make the s...