Search found 4 matches
- Fri Sep 27, 2019 11:08 am
- Forum: Support and Development
- Topic: Rendering issue with polygon
- Replies: 3
- Views: 3165
Re: Rendering issue with polygon
Your polygon is concave. love.graphics.polygon works with convex polygons only. You could draw your speech bubble in two parts as a rectangle and a triangle or you could use love.math.triangulate My tutorial on polygon math: https://2dengine.com/?p=polygons#Convex_or_concave Thank you for your help...
- Thu Sep 26, 2019 4:28 am
- Forum: Support and Development
- Topic: Rendering issue with polygon
- Replies: 3
- Views: 3165
Rendering issue with polygon
So I'm trying to make some sort of message box with an arrow pointing to a square. I'm using love.graphics.polygon to render this. I'm rendering a rectangle-shaped polygon, and if some character were to be talking, then there would be more vertices to turn that rectangle into a speech bubble shape. ...
- Fri Aug 08, 2014 5:21 pm
- Forum: Support and Development
- Topic: Issues with dt and multiple windows
- Replies: 3
- Views: 3218
Re: Issues with dt and multiple windows
Thanks a lot Mincha, it works.
- Fri Aug 08, 2014 4:01 pm
- Forum: Support and Development
- Topic: Issues with dt and multiple windows
- Replies: 3
- Views: 3218
Issues with dt and multiple windows
I'm trying to make my charecter jump with the following code: function love.update(dt) [...] if love.keyboard.isDown("w") then dTotal = dTotal + dt meow.y = meow.y - (meow.gravity *25* dt) if (meow.gravity > 2.1) then meow.gravity = meow.gravity - 0.8 end if (meow.gravity < 2) then meow.gr...