Search found 8 matches

by lippo
Tue Sep 06, 2016 7:43 pm
Forum: Support and Development
Topic: how can fix it?
Replies: 2
Views: 2015

Re: how can fix it?

Thanks for you reply s-ol I had put the delta time, but I did not see differences . I will add it We do not program for a while I definitely need a refresher I put the code as you suggested. The color I still have to fix --questo fa muovere il testo tabt.x = tabt.x + tabt.speed * dt --avanzamento x ...
by lippo
Tue Sep 06, 2016 5:01 pm
Forum: Support and Development
Topic: how can fix it?
Replies: 2
Views: 2015

how can fix it?

hello guys have done a little experiment whith love print and have found this bug : -sometimes when the program starts the text go high speed -the text change color before reaching the edge - if keypressed ' - ' when text is egual equal to 1 text disappear even if I put control if this is the code f...
by lippo
Sat Nov 15, 2014 11:19 pm
Forum: Libraries and Tools
Topic: [Tutorials] Making a simple 2D physics engine
Replies: 33
Views: 28238

Re: [Tutorials] Making a simple 2D physics engine

The "class" box didn't work because you're not using a class library. As I said in my tutorial you'll need THIS or something similar. Then you'll call it as object:new(), even though the loading function is object:init(). thanks for your reply hugo, ok i try to study class system for inte...
by lippo
Sat Nov 15, 2014 5:33 pm
Forum: Libraries and Tools
Topic: [Tutorials] Making a simple 2D physics engine
Replies: 33
Views: 28238

Re: [Tutorials] Making a simple 2D physics engine

hello hugo i have try to use your code for my training type this box = class:new() function box:init(x, y) self.x = x self.y = y self.width = 10 self.height = 10 self.image = myTexture self.friction = .98 end function box:update(dt) self.x = self.x+dt*5 end function box:draw() love.graphics.rectangl...
by lippo
Sun Oct 26, 2014 9:57 pm
Forum: Libraries and Tools
Topic: [Tutorials] Making a simple 2D physics engine
Replies: 33
Views: 28238

Re: [Tutorials] Making a simple 2D physics engine

thanks for you tutorial
by lippo
Mon Oct 20, 2014 8:41 pm
Forum: Support and Development
Topic: quad problem?
Replies: 4
Views: 3951

Re: quad problem?

edit have partly resolved with AnAL module
by lippo
Mon Oct 20, 2014 7:39 pm
Forum: Support and Development
Topic: quad problem?
Replies: 4
Views: 3951

Re: quad problem?

Ref wrote:You make them but you don't store them anywhere.
You need something like:

Code: Select all

quads = {}
quads[1] = love.graphics.newQuad(....
etc.
and then draw each of the quads.
thanks for your help try to include your example in my code :awesome:
by lippo
Mon Oct 20, 2014 3:43 pm
Forum: Support and Development
Topic: quad problem?
Replies: 4
Views: 3951

quad problem?

hello I just started to use love have a problem whith tis code error this Error: main.lua:113: attempt to index global 'quads' (a nil value) stack traceback: main.lua:113: in function 'draw' [string "boot.lua"]:410: in function <[string "boot.lua"]:373> [C]: in function 'xpcall' ...