Search found 2 matches
- Sun Aug 26, 2012 12:27 am
- Forum: Support and Development
- Topic: How do I set multiple colors? Help please.
- Replies: 6
- Views: 4108
Re: How do I set multiple colors? Help please.
You need to have the setColor immediately before the drawing of the rectangle. It draws using whatever the last color was, and white is set after the other color is set, so white overwrites it. You'll want something like this: love.graphics.setColor(158, 158, 158) love.graphics.rectangle("fill&...
- Sun Aug 26, 2012 12:24 am
- Forum: Support and Development
- Topic: Left and Right Collision Detection Help! [FIXED]
- Replies: 1
- Views: 1661
Re: Left and Right Collision Detection Help! .love file incl
Which part do you need help with? When I first tried it, it seems that when the player is on the ground they can't move left, but right works fine. I changed the code so that it is if typecol == "left" then if ColMap[math.floor(obj1x/32)][math.floor((obj1y + obj1h - 1)/32)] == 1 then print...