Search found 6 matches
- Wed Jan 02, 2013 4:41 pm
- Forum: Support and Development
- Topic: Need help with jump cooldown
- Replies: 1
- Views: 1461
Need help with jump cooldown
Hi everyone, I'm trying to make my first game, it's now just a block moving right, left and up using physics and :applyForce(), but I want my lil' cube to jump only when he is on something. So is there a way for me to get the vertical velocity and the vertical velocity only ? Thanks in advance, -Ech...
- Thu Dec 27, 2012 8:11 pm
- Forum: Support and Development
- Topic: Need some help with jumping and physics!
- Replies: 8
- Views: 3318
Re: General LÖVE newbie needs help with moving his avatar
Yay, I can use physics a little! My character can now jump, and move. But I don't want him to be able to jump (alter his vertical velocity) when he is in mid-air. The way I tried to do that is by using player.body:getLinearVelocity() I now recieved the input for the y and x velocity, and in a weird ...
- Thu Dec 27, 2012 1:20 pm
- Forum: Support and Development
- Topic: Need some help with jumping and physics!
- Replies: 8
- Views: 3318
Re: General LÖVE newbie needs help with moving his avatar
Okay, that explains it.Roland_Yonaba wrote:Well, the Karma mod isn't actually available.
But, you can give us some cookies instead. Or bacon.
Roland_Yonana: +1 internetbaconcookie
Santos: +1 internetbaconcookie
Zeliarden: +1 internetbaconcookie
-Echamiq
- Thu Dec 27, 2012 12:32 pm
- Forum: Support and Development
- Topic: Need some help with jumping and physics!
- Replies: 8
- Views: 3318
Re: General LÖVE newbie needs help with moving his avatar
The current color can affect images too. Then the color is being set with love.graphics.setColor(72, 160, 14) in ground_draw is still used when the player is drawn. The simplest way to fix this is to change the color to white before drawing the player: function player_draw() love.graphics.setColor(...
- Thu Dec 27, 2012 10:42 am
- Forum: Support and Development
- Topic: Need some help with jumping and physics!
- Replies: 8
- Views: 3318
Re: General LÖVE newbie needs help with moving his avatar
Well... Only drew the avatar slightly lower, and it's still brown-colored... The part about physics only acting on bodies makes a lot of sense though.
Thanks so much for helping already, but I'm afraid I'm going to need some more...
-Echamiq
Thanks so much for helping already, but I'm afraid I'm going to need some more...
-Echamiq
- Wed Dec 26, 2012 5:42 pm
- Forum: Support and Development
- Topic: Need some help with jumping and physics!
- Replies: 8
- Views: 3318
Need some help with jumping and physics!
Hi! I'm totally new to Love2d, I have programmed Lua a little in minecraft, and I have an issue: I want to have a picture as an avatar, controlled with the arrow keys. But the script doesn't give any error messages, but I only get a brown version of my originally red avatar which is uncontrollable. ...