Search found 49 matches

by BarnD
Mon Apr 18, 2011 1:25 pm
Forum: General
Topic: Pointing an image
Replies: 23
Views: 9715

Re: Pointing an image

Anxiety wrote:I got it working by using the love.graphics.draw function's offset x and offset y.
I was just about to say that, but then you edited the post. :)
Cause im making a game, which is so far basically like yours, and I did that too.
by BarnD
Mon Apr 18, 2011 7:32 am
Forum: General
Topic: Rotation of image pointing towards mouse?
Replies: 9
Views: 4112

Re: Rotation of image pointing towards mouse?

Robin wrote:People reading your code would expect math.* to be one of the standard library functions.
Unless you want them to be confused :crazy:
by BarnD
Mon Apr 18, 2011 6:48 am
Forum: General
Topic: Rotation of image pointing towards mouse?
Replies: 9
Views: 4112

Re: Rotation of image pointing towards mouse?

BlackBulletIV wrote:I usually wrap that into a functions,
It makes things easier to remember.
Yeah, also makes the code much cleaner. :D
by BarnD
Mon Apr 18, 2011 4:45 am
Forum: General
Topic: Rotation of image pointing towards mouse?
Replies: 9
Views: 4112

Re: Rotation of image pointing towards mouse?

Woo, thanks.

Code: Select all

playerR = math.atan2(mouseY-playerY, mouseX-playerX)
That's basically what i have done to get it working for now.. :)
by BarnD
Mon Apr 18, 2011 4:16 am
Forum: General
Topic: Rotation of image pointing towards mouse?
Replies: 9
Views: 4112

Rotation of image pointing towards mouse?

I am currently having a blank moment, I'm trying to get an image, lets say the image is a cube and its in the middle of the screen, how would i go about making one face of the cube angle towards the cursor and rotate the cube to where the cursor is. No need to write out a whole script, just say a go...
by BarnD
Sat Apr 16, 2011 5:01 am
Forum: Libraries and Tools
Topic: LOVE Cheat Sheet (1.0)
Replies: 49
Views: 23656

Re: LOVE Cheat Sheet

Awesome! probably going to be using it a bit. :)
by BarnD
Thu Jun 24, 2010 4:11 am
Forum: General
Topic: I'm a new user, and I can't start LOVE...
Replies: 2
Views: 1859

Re: I'm a new user, and I can't start LOVE...

this might help
http://love2d.org/wiki/Getting_Started
you have to save main.lua in a folder then use a command to test it
by BarnD
Sat Jun 19, 2010 3:40 pm
Forum: General
Topic: New website design!
Replies: 14
Views: 9888

Re: New website design!

Jasoco wrote: If you're gonna use them, ya might as well support all three
i agree, i even typed them out.. ;)
by BarnD
Sat Jun 19, 2010 2:41 am
Forum: General
Topic: New website design!
Replies: 14
Views: 9888

Re: New website design!

looks awesome! i think it needs some #main { -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .green { -webkit-border-radius: 10px 10px 0 0; -moz-border-radius: 10px 10px 0 0; border-radius: 10px 10px 0 0; } #footer { -webkit-border-radius: 0 0 10px 10px; -moz-border-rad...