So is this why my jumping dude was so damn difficult to fine-tune?
*EDIT* No, no it isn't. I wasn't using the physics engine in any regard (that I was aware of).
Search found 65 matches
- Thu Oct 23, 2008 7:41 pm
- Forum: General
- Topic: Box2D Note
- Replies: 18
- Views: 14255
- Wed Oct 15, 2008 3:54 am
- Forum: Support and Development
- Topic: Suggestion: mousemoved() callback
- Replies: 6
- Views: 6292
Re: Suggestion: mousemoved() callback
This breaks the "drag from the original click point" portion of the code, but purely for testing purposes see if this doesn't help: function update(dt) if drag.active then local x, y = love.mouse.getPosition() rect.x = x - drag.dx * dt rect.y = y - drag.dy * dt end end
- Tue Oct 14, 2008 8:43 pm
- Forum: Support and Development
- Topic: Jumping Problem
- Replies: 12
- Views: 16381
Re: Jumping Problem
Do me a favor and post the results here so I can see what you did. You don't have to use this thread, but it might be helpful in keeping it all in one spot.
- Tue Oct 14, 2008 8:42 pm
- Forum: Support and Development
- Topic: Suggestion: mousemoved() callback
- Replies: 6
- Views: 6292
Re: Suggestion: mousemoved() callback
I'm not entirely certain what your problem is? The example works perfectly for me with no noticeable lag or anything. I click the square and drag it and the cursor remains and the square is dragged around. WFM.
- Sat Oct 11, 2008 11:05 pm
- Forum: Support and Development
- Topic: Jumping Problem
- Replies: 12
- Views: 16381
Re: Jumping Problem
It certainly works. I understood none of what you said, but it works.
- Sat Oct 11, 2008 3:26 pm
- Forum: Support and Development
- Topic: Jumping Problem
- Replies: 12
- Views: 16381
Re: Jumping Problem
Hmm. How's his left to right? Is he Road Runner or is he fairly sedate?Kaze wrote:Way off.
- Sat Oct 11, 2008 9:24 am
- Forum: Support and Development
- Topic: Jumping Problem
- Replies: 12
- Views: 16381
Re: Jumping Problem
Does he jump off the screen? Because right now he's meant to jump a goodly portion of the screen. But not off.Kaze wrote:I tried it. He jumps way too high.
- Sat Oct 11, 2008 5:02 am
- Forum: Support and Development
- Topic: Jumping Problem
- Replies: 12
- Views: 16381
Re: Jumping Problem
Just an update, as I've gotten this to do both Double Jump (if you continue holding the jump key down, he double-jumps, something I'm not entirely certain I like) and a little bit of hang-time (which helps you to find the height of the jump for maximum double-jump). Here ya go: -- Make a dude jump u...
- Fri Oct 10, 2008 4:18 am
- Forum: Support and Development
- Topic: Jumping Problem
- Replies: 12
- Views: 16381
Re: Jumping Problem
Awesome, thanks. What I wound up with: -- Make a dude jump up and land. Also allow the movement left and right. function load() dude = love.graphics.newImage("dude.png") x = 300 y = 400 speed = 100 jump = 0 end function update(dt) if love.keyboard.isDown(love.key_right) then x = x + (speed...
- Thu Oct 09, 2008 11:23 pm
- Forum: Support and Development
- Topic: Jumping Problem
- Replies: 12
- Views: 16381
Jumping Problem
Okay, so I'm trying to (very simply) make a little dude jump up and land. So far it's actually going okay. I got him to jump. But he jumps at OMG ridiculous speed versus the left and right which are far more reasonable. I know dt has to figure into this SOMEWHERE but it's escaping me where (I don't ...