Search found 15 matches

by Broncheabones
Mon Feb 09, 2009 11:29 pm
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21719

Re: Physics, applyImpulse, dt and other things

Hey, I noticed you are still trying to adapt it to K and that is my fault. I took a suggestion to change it to the delta time function so this is what my code looks like now: EDIT: I've edited the code and now I'm faced with a new problem. Now I check if there is no (minimal actually) vertical force...
by Broncheabones
Thu Feb 05, 2009 12:01 am
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21719

Re: Physics, applyImpulse, dt and other things

Wow, that is a hefty amount of code just to make it so I don't keep jumping. Shouldn't it be something simple like collision detection and not 12 lines?
by Broncheabones
Wed Feb 04, 2009 10:39 pm
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21719

Re: Physics, applyImpulse, dt and other things

Hey Chris, I tried what you suggested but it seems my ball just won't jump anymore. Please tell me if I did it right. if space == 0 then if love.keyboard.isDown(love.key_w) then space = 1 body:applyImpulse(0, -100000) end end I also added in function collision(a, b, c) space=0 text = "Collided:...
by Broncheabones
Wed Feb 04, 2009 6:06 pm
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21719

Re: Physics, applyImpulse, dt and other things

Hey guys, you've been a big help, but over one hill and on to another. I hate to keep asking questions, it makes me feel so dumb but it's better than raging on my keyboard. This is what I've turned my code in to: function update(dt) if love.keyboard.isDown(love.key_d) then body:applyImpulse(200000*d...
by Broncheabones
Wed Feb 04, 2009 5:30 am
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21719

Physics, applyImpulse, dt and other things

I'm new to Love and relatively new to LUA but I've got things down, for the most part. The "Game" I'm trying to make is a sidescroller that involves gravity. Any how, I used applyImpulse for my movement but whenever the key is it it totally resets my current horizontal/vertical speed. On t...