Making the character jump in physics

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
plz_m0ve
Prole
Posts: 16
Joined: Fri Jan 04, 2013 4:07 pm

Making the character jump in physics

Post by plz_m0ve »

Hi!

how do i make my character jump or atleast learn to do it? The love physics tutorial diden't show it :S
Anyone knows?
LÖVE IS IN THE AIR
- OBEY
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: Making the character jump in physics

Post by Saegor »

you can apply a linear impulse in Y axis

like

Code: Select all

character.body:applyLinearImpulse( 0, -400 )
Current work : Isömap
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests