Can anyone specify the other modes besides fill that I can pass to this function?
https://love2d.org/wiki/love.graphics.rectangle
I need to draw an outline of a rectangle that is not filled in the middle.
Search found 28 matches
- Tue Feb 03, 2015 2:26 pm
- Forum: Support and Development
- Topic: love.graphics.rectangle Mode [SOLVED]
- Replies: 2
- Views: 2245
- Mon Feb 02, 2015 5:11 pm
- Forum: Support and Development
- Topic: Physics Help, Please
- Replies: 2
- Views: 1702
Physics Help, Please
I use applyForce or applyLinearForce to push back an enemy when I attack them. Although, the problem is that if I attack him he seems as if he doesn't have any friction applied to the ground. He goes sliding off into the opposite direction. This also happens if I hit them midair, they go flying off!...
- Thu Jan 22, 2015 1:16 am
- Forum: Support and Development
- Topic: love.window.getPosition Error
- Replies: 1
- Views: 1076
love.window.getPosition Error
I am receiving this error: Error: attempt to call field 'getPosition' (a nil value) for the following line of code: x, y, display = love.window.getPosition( )--Gets the position of the window on the screen The error also appears when I write the "setPosition" statement for this function. ...
- Wed Jan 07, 2015 3:50 pm
- Forum: Support and Development
- Topic: "A fixture has escaped Memoizer!" Error
- Replies: 4
- Views: 2202
Re: "A fixture has escaped Memoizer!" Error
Post your code. I tried to do the garbage collection method described in the link, but it is now just crashing more than showing the error. It is really hard to isolate why it is happening, the only observation I would deduce is when collisions happen between this object and the ai object. Also, th...
- Wed Jan 07, 2015 12:58 am
- Forum: Support and Development
- Topic: "A fixture has escaped Memoizer!" Error
- Replies: 4
- Views: 2202
"A fixture has escaped Memoizer!" Error
(A) Can anyone tell me what this error message means? I assume it has something to do with garbage collection: https://love2d.org/forums/viewtopic.php?f=4&t=9643 (B) Is there any simple exception handling you can suggest? (Or is the method described in the link the best?) I am basically just cre...
- Tue Dec 30, 2014 11:31 pm
- Forum: Support and Development
- Topic: love.draw() & love.update() Call Occurences
- Replies: 2
- Views: 2228
love.draw() & love.update() Call Occurences
(A) How many times is love.update() called per second?
(B) How many times is love.draw() called per second?
(C) Should I be measuring these per second or per frame?
Any help would be greatly appreciated!
(B) How many times is love.draw() called per second?
(C) Should I be measuring these per second or per frame?
Any help would be greatly appreciated!
- Tue Dec 23, 2014 7:42 pm
- Forum: Support and Development
- Topic: showMessageBox Error
- Replies: 3
- Views: 1399
showMessageBox Error
:awesome: (A) Is there not a way to create an additional window (for displaying my debug text) without using message box? (B) I get the following error: main.lua:570: attempt to call field 'showMessageBox' (a nil value) with the following code: title="Controls" message="Arrow Keys = M...
- Mon Dec 08, 2014 2:07 am
- Forum: Support and Development
- Topic: Redefining "love.graphics.newImage()"
- Replies: 3
- Views: 1658
Redefining "love.graphics.newImage()"
I just implemented a simple patrolling AI. In the update function, I have the line "love.graphics.newImage()" to change depending on which waypoint it is going to. For example, if it is heading toward the waypoint on the right, then change the image to the appropriate sprite. As long as I ...
- Sat Dec 06, 2014 8:19 pm
- Forum: Support and Development
- Topic: Edit Code In Real Time (Game Time)
- Replies: 3
- Views: 1979
Edit Code In Real Time (Game Time)
Is there not a way to edit my script with the game running, click back in my game window and see the changes instantly? I want this instead of having to close it and rerun the game every time I tweak it..
- Sat Dec 06, 2014 7:59 pm
- Forum: Support and Development
- Topic: [SOLVED] Player Sinks Into Ground After Collision
- Replies: 5
- Views: 3502
Re: [SOLVED] Player Sinks Into Ground After Collision
Hehe, and mine doesn't look fat enough like the one there. LOLDoctory wrote:this has nothing to do with the question, all i wanted to mention is that you are missing the nose holes on the pig