Search found 11 matches

by gravyferry
Wed Apr 05, 2017 1:29 am
Forum: Support and Development
Topic: Best collision type to use for non-uniform shapes.
Replies: 1
Views: 2095

Best collision type to use for non-uniform shapes.

I'm trying to do collision with sort of blobish shapes and I was wondering what would be the best way to do collision on these. Sine I'm not too into love, and looking around the wiki hasn't helped me much on deciding what to use.
by gravyferry
Sat May 14, 2016 6:26 pm
Forum: Support and Development
Topic: The 'Newfont' function isn't working
Replies: 4
Views: 3997

Re: The 'Newfont' function isn't working

Tjakka5 wrote:You typed .tff instead of .ttf ^^
omg I feel so dumb, lol, thanks!
by gravyferry
Sat May 14, 2016 6:33 am
Forum: Support and Development
Topic: The 'Newfont' function isn't working
Replies: 4
Views: 3997

Re: The 'Newfont' function isn't working

NewFont isn't capitalized. Proper capitalization is important. It's newFont. All the functions Löve uses are camelCased with the first letter being lowercase. It's one of a few different naming conventions coders use. Like function_name vs. functionName vs. functionname. I prefer camelCase myself. ...
by gravyferry
Sat May 14, 2016 6:07 am
Forum: Support and Development
Topic: The 'Newfont' function isn't working
Replies: 4
Views: 3997

The 'Newfont' function isn't working

I was attempting to use a font I downloaded and it gives me this error when I attempt to use the newfront function. The error message Error main.lua:17: attempt to call feild 'NewFont' (a nil value) Traceback main.lua:17: in function 'load' [C]: in function 'xpcall' here's the code involved end func...
by gravyferry
Sat Jun 20, 2015 2:27 am
Forum: Support and Development
Topic: Function argument expected ','
Replies: 5
Views: 3678

Re: Function argument expected ','

davisdude wrote:In both you're missing the () on the fist Img:getHieght. I can't test right now, but that may be the problem.
Oh oops, didn't notice that, thanks for saying it, and thanks to you too TurtleP for still being considerate, even if you were wrong.
by gravyferry
Sat Jun 20, 2015 12:08 am
Forum: Support and Development
Topic: Function argument expected ','
Replies: 5
Views: 3678

Function argument expected ','

I don't know what i've done here that doesnt work, I have an if function argument on the line that it's talking about. -- Collision detection if checkCollision(bullet.x, bullet.y, bullet.Img:getWidth(), bullet.Img:getHeight, player.x, player.y, player.Img:getWidth(), player.Img:getHeight()) then pla...
by gravyferry
Mon Jun 01, 2015 6:09 am
Forum: Support and Development
Topic: My command to end is being ignored.
Replies: 2
Views: 2345

Re: My command to end is being ignored.

-- Enemy AI if bullet.x > 640 then if bullet.y ~= player2.y then if player2.y ~= 1 then if player2.y < (love.graphics.getHeight - player2.Img:getHeight()) then player2.y = player2.y + (player2.ySpeed*dt) end elseif player2.y ~= 580 then if player2.y < (love.graphics.getHeight - player2.Img:getHeigh...
by gravyferry
Mon Jun 01, 2015 3:35 am
Forum: Support and Development
Topic: My command to end is being ignored.
Replies: 2
Views: 2345

My command to end is being ignored.

I barely know how to describe this, it basically is just ignoring a bit of my code. https://imgur.com/QwYpmqI this is the error message debug = true player = { x = 10, y = 560, xSpeed = 450, ySpeed = 700, img = nil} player2 = { x = 1210, y = 560, xSpeed = 450, ySpeed = 700, img = nil} bullet = { x =...
by gravyferry
Sun May 31, 2015 11:07 pm
Forum: Support and Development
Topic: Unexpected <eof> near End
Replies: 2
Views: 2675

Re: Unexpected <eof> near End

Thanks for the help.
by gravyferry
Sun May 31, 2015 6:55 am
Forum: Support and Development
Topic: Unexpected <eof> near End
Replies: 2
Views: 2675

Unexpected <eof> near End

I'm trying to make a basic tracking AI that follows the player's y axis and approaches them, then I came across this error, I don't know what's caused it. The code for the AI is below, as well as the code other entities incase they're screwing with it somehow. (This is my first game, so be ready for...