Search found 5 matches
- Sun Dec 11, 2022 7:50 pm
- Forum: Support and Development
- Topic: Vertical Movement Platform - Glue
- Replies: 6
- Views: 1567
Re: Vertical Movement Platform - Glue
A platform that accelerates faster than the player will always outrun the player's fall, that's just how the world works. If the platform's speed changes from 0 to a finite value without a transition, the acceleration is infinite, and that means the player is not supposed to catch up with the platf...
- Fri Dec 09, 2022 6:53 pm
- Forum: Support and Development
- Topic: Vertical Movement Platform - Glue
- Replies: 6
- Views: 1567
Re: Vertical Movement Platform - Glue
Id say if there is a touch simply replace the player. I don't understand well, what is "touch simply"? (I'm beginner) --- 1) Be sure that you update platform before update of player. 2) Why not hard placing as player.y = platform.y + player.height? (while standing on the platform) 1) I've...
- Fri Dec 09, 2022 4:41 pm
- Forum: Support and Development
- Topic: Vertical Movement Platform - Glue
- Replies: 6
- Views: 1567
Vertical Movement Platform - Glue
Hi, everyone. I'm making a platform game and there's a vertical movement platform. My problem is how you guys deal with vertical movement; the player doesn't distance himself from it. What I'm doing is on the player: I'm summing up the DeltaPlataformMovement (speedPlataform*dt) on the player's movem...
- Sat Dec 03, 2022 6:14 pm
- Forum: Support and Development
- Topic: [Solved] Body:getWorldPoints for polygon (doubling position value)
- Replies: 2
- Views: 1330
Re: Body:getWorldPoints for polygon (doubling position value)
Facepalm. For some reason, I was thinking in love.graphics.polygon("fill", vertices).darkfrei wrote: ↑Sat Dec 03, 2022 5:56 pmCode: Select all
obj.vertices = { -obj.l/2, obj.l/2, 0, -obj.l/2, obj.l/2, obj.l/2 }
Thank you so much @darkfrei
Solved!
- Sat Dec 03, 2022 4:50 pm
- Forum: Support and Development
- Topic: [Solved] Body:getWorldPoints for polygon (doubling position value)
- Replies: 2
- Views: 1330
[Solved] Body:getWorldPoints for polygon (doubling position value)
Hi, everyone. I really don't know why this happening. I'm trying to set body/shape/fixture to my player (triangle) and the value of the body when I try to get from getWorldPoints always doubles the original value. I tried using a circle (getWorldPoint) and works perfectly the circle is printed in th...