Right after implementing this in the game, everything worked perfectly! Thanks everyone!kikito wrote: ↑Wed Mar 22, 2017 3:07 pm I'm just going to leave this here in case it helps: http://openarena.ws/board/index.php?topic=5100.0
Search found 8 matches
- Wed Mar 22, 2017 7:48 pm
- Forum: Support and Development
- Topic: Jump Height Unstable
- Replies: 8
- Views: 6423
Re: Jump Height Unstable
- Wed Mar 22, 2017 7:35 pm
- Forum: Support and Development
- Topic: Jump Height Unstable
- Replies: 8
- Views: 6423
Re: Jump Height Unstable
player.yv = poly.yv+GRAVITY*dt Is that a typo? Looks like maybe poly.yv was supposed to be player.yv? Lol, yeah. In the actual program everything that says "player" is actually "poly". I changed the code in the post to be clear on what was the object was, but it looks like I mis...
- Wed Mar 22, 2017 12:28 am
- Forum: Support and Development
- Topic: Jump Height Unstable
- Replies: 8
- Views: 6423
Re: Jump Height Unstable
There's no collision detection (except with the ground), or horizontal movement. I'm using the default love.run. I don't know about how varied my dt is.
- Tue Mar 21, 2017 4:44 pm
- Forum: Support and Development
- Topic: Jump Height Unstable
- Replies: 8
- Views: 6423
Jump Height Unstable
In my game, the square shaped player must jump through tight holes in incoming pillars. to ensure that it looks visually correct I have defined the jump height with the following line: JUMP_VEL = math.sqrt(GRAVITY*JUMP_HEIGHT/0.5) My update function looks something like this: if player.inair then pl...
- Sun Apr 03, 2016 11:26 pm
- Forum: Support and Development
- Topic: Pygame Rect in Love?
- Replies: 16
- Views: 7806
Re: Pygame Rect in Love?
I've written my own thing based on MadByte, Kingdaro, and zorg's examples. Here it is:
Thanks everyone!- Mon Mar 14, 2016 4:53 pm
- Forum: Games and Creations
- Topic: Hat Cat
- Replies: 26
- Views: 11607
Re: Hat Cat
I just started playing this and it's amazing.
- Mon Mar 14, 2016 7:16 am
- Forum: Support and Development
- Topic: Pygame Rect in Love?
- Replies: 16
- Views: 7806
Re: Pygame Rect in Love?
Thanks a lot for for the responses!
- Mon Mar 14, 2016 4:28 am
- Forum: Support and Development
- Topic: Pygame Rect in Love?
- Replies: 16
- Views: 7806
Pygame Rect in Love?
So I'm very used to pygame. I've been using it for a while, and I want to switch over to love for many reasons. In pygame, there is this handy little object class called a Rect that represents a rectangle. The class has variables (ie. Left, right, top, bottom) that change automatically when the othe...