Search found 4 matches

by no name
Fri Feb 24, 2017 4:37 pm
Forum: Support and Development
Topic: BoundingBox.lua:7: ')' expected near '.'
Replies: 2
Views: 3697

BoundingBox.lua:7: ')' expected near '.'

recently I've been attempting to achieve some sort of collision between the player and a box, using BoundingBox.lua. but, i keep getting this error when starting the game: Error Syntax error: BoundingBox.lua:7: ')' expected near '.' here's the code: function CheckCollision(player.x, player.y, player...
by no name
Thu Dec 22, 2016 4:54 pm
Forum: Support and Development
Topic: Can't draw image at body coordinates, gets nil error (solved)
Replies: 5
Views: 3691

Re: Can't draw image at body coordinates, gets nil error

I'll be fixing this tomorrow, thanks for the help!
by no name
Thu Dec 22, 2016 4:33 pm
Forum: Support and Development
Topic: Can't draw image at body coordinates, gets nil error (solved)
Replies: 5
Views: 3691

Re: Can't draw image at body coordinates, gets nil error

evölbug wrote:it looks like you are overwriting 'orange' with this line; you made it and overwrote it immediately after

Code: Select all

orange = love.graphics.newImage("orange.png")
ah, so renaming the variable orange to something else will fix it?
by no name
Thu Dec 22, 2016 4:09 pm
Forum: Support and Development
Topic: Can't draw image at body coordinates, gets nil error (solved)
Replies: 5
Views: 3691

Can't draw image at body coordinates, gets nil error (solved)

Hello! For my game, i'm trying to draw an image of the player and attach it to a body using body.getX() and body.getY(), but i keep getting the error "main.lua:25 attempt to index field 'body' (a nil value) Traceback main.lua:25 in function 'draw' [C] in function 'xpcall' " I have absolute...