Hello any , I' m on the " physics way" in love. I want make a Body , Can jump and move .... But in my code , if i jump my body dont conserve right or left move ! I had search in the LovelBigPlantet code but i m dont understand all :o i read this : --get the velocity, process the input, and...
hello any ! i'm trying to understand Lua , love and all the rest ...( female , world war ... :o ) I have write this : --AutoGenerated by DEVotion PhyRect={} PhyRect.Rect={} function Add(Tx,Ty) local R={} R.Body= love.physics.newBody(PhyWorld, Tx*32, Ty*32,0) R.Shape=love.physics.newRectangleShape(R....
:death: hello all , i ' don't understand this : function Me.Draw(bla,bla) just it exemple. they are some way to doing this ? : function Me.new(tx,ty) table.insert(Me,{Img=love.graphics.newImage("love_ball.png"); x=tx; y=ty}) end function load() Me:new(200,200) Me:new(70,500) Me:new(200,400...
thank a lot ! i m understand now "pairs" . It s ok. i' old qbasic programmer lol ^^ , lua is amazing ! Love more ! Update=function(self) for key,B in pairs(self.Bul) do if B.y < 10 then table.remove(self.Bul,key) end B.y = B.y - 2 end Code used here :