I was just about to say that, but then you edited the post.Anxiety wrote:I got it working by using the love.graphics.draw function's offset x and offset y.
Cause im making a game, which is so far basically like yours, and I did that too.
I was just about to say that, but then you edited the post.Anxiety wrote:I got it working by using the love.graphics.draw function's offset x and offset y.
Unless you want them to be confusedRobin wrote:People reading your code would expect math.* to be one of the standard library functions.
Yeah, also makes the code much cleaner.BlackBulletIV wrote:I usually wrap that into a functions,
It makes things easier to remember.
Code: Select all
playerR = math.atan2(mouseY-playerY, mouseX-playerX)
i agree, i even typed them out..Jasoco wrote: If you're gonna use them, ya might as well support all three