Search found 35 matches

by clepto
Sat Jul 28, 2012 11:38 pm
Forum: Support and Development
Topic: Movement sliding as an affect from linear impulse
Replies: 3
Views: 1240

Movement sliding as an affect from linear impulse

Hello, after the code i written using the help from the guys here https://love2d.org/forums/viewtopic.php?f=4&t=10253 i'm having a problem... download the .love from the last post https://love2d.org/forums/viewtopic.php?f=4&t=10253#p62109 , run it, press "d" for a while and then press "a". The chara...
by clepto
Sat Jul 28, 2012 10:36 pm
Forum: Support and Development
Topic: Jump while walking and how to make a box solid
Replies: 8
Views: 2402

Re: Jump while walking and how to make a box solid

Everything looks good and working!! Thanks!

I attached the final .love in case someone want to see the code :)
by clepto
Sat Jul 28, 2012 10:18 pm
Forum: Support and Development
Topic: Jump while walking and how to make a box solid
Replies: 8
Views: 2402

Re: Jump while walking and how to make a box solid

clepto you are doing something wrong, the getlinearvelocity, you have to do like character:getlinearvelocity, so if your character body is bloublou, it will be bloublou:getlinearvelocity. sorry ;) i know, i change that :crazy: there was something else... @Robin i have a problem :crazy: can you look...
by clepto
Sat Jul 28, 2012 9:47 pm
Forum: Support and Development
Topic: Jump while walking and how to make a box solid
Replies: 8
Views: 2402

Re: Jump while walking and how to make a box solid

@Robin

something like that?

Code: Select all

if key == "a" then
    objects.char.body:applyLinearImpulse( 10, 0 )
    char_direction = "left"
elseif key == "d" then
    objects.char.body:applyLinearImpulse( -10, 0 )
    char_direction = "right"
end
by clepto
Sat Jul 28, 2012 9:40 pm
Forum: Support and Development
Topic: Jump while walking and how to make a box solid
Replies: 8
Views: 2402

Re: Jump while walking and how to make a box solid

As far as I can see, that works. i can move while jumping but i can't jump while moving :) Note that you don't actually use the character's body. Get rid of objects.char.x and objects.char.y . Instead, use love.physics: for getting the character's position to draw it, use objects.char.body:getX and...
by clepto
Sat Jul 28, 2012 9:37 pm
Forum: Support and Development
Topic: Jump while walking and how to make a box solid
Replies: 8
Views: 2402

Re: Jump while walking and how to make a box solid

i am telling my character to jump in love.keypressed so i added in the love.update the

Code: Select all

walking.speed, jumping.speed=getLinearVelocity
and in love.keypressed the

Code: Select all

character:setLinearVelocity(walking.speed, -1000)
but i guess i'm doing something wrong :P
by clepto
Sat Jul 28, 2012 9:27 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1726
Views: 761327

Re: What's everyone working on? (tigsource inspired)

Thanks! i'll change the code tomorrow to anim8
by clepto
Sat Jul 28, 2012 6:52 pm
Forum: Support and Development
Topic: Jump while walking and how to make a box solid
Replies: 8
Views: 2402

Jump while walking and how to make a box solid

Hello! With help from the wiki i manage to get my character to jump! but he can't jump while he is moving...try to press space while you hold "d"... How can i make it jump while moving? Also, as you can in the game, the character just passes through the crate...how can i make the crate to have a mas...
by clepto
Sat Jul 28, 2012 4:47 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1726
Views: 761327

Re: What's everyone working on? (tigsource inspired)

i was going to use AnAL https://love2d.org/wiki/AnAL but it seems pretty good! have you used both? which is better?
by clepto
Sat Jul 28, 2012 3:54 pm
Forum: Libraries and Tools
Topic: Animations And LÖVE (AnAL) - The animations replacement lib
Replies: 71
Views: 35032

Re: Animations And LÖVE (AnAL) - The animations replacement

how many arguments the anim:draw take?