Search found 4 matches

by c4p14in3_
Sun Feb 05, 2017 12:30 am
Forum: Support and Development
Topic: HUMP class and arguments
Replies: 6
Views: 2331

Re: HUMP class and arguments

Oh okay, thanks a lot !
by c4p14in3_
Sat Feb 04, 2017 1:30 pm
Forum: Support and Development
Topic: HUMP class and arguments
Replies: 6
Views: 2331

Re: HUMP class and arguments

Because when I use the HUMP/timer lib I need to use the class constructor to declare function. This don't work: Obj = class{} function Obj:init() self.x = 0 end function Obj:timeFunction() self.x = self.x + self.var end function Obj:add(var) self.var = var timer.after(1, self.timeFunction) end But t...
by c4p14in3_
Sat Feb 04, 2017 10:58 am
Forum: Support and Development
Topic: HUMP class and arguments
Replies: 6
Views: 2331

HUMP class and arguments

Hello, I've got a "problem" with HUMP class lib What I want to do is : Obj = class{} function Obj:init() self.x = 100 self.add = function(var) self.x = self.x + var end end I know I can do : function Obj:add(var) self.x = self.x + var end But I don't like this syntax ... So i'd like to know if there...
by c4p14in3_
Fri Jan 06, 2017 9:12 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 183922

Re: "Questions that don't deserve their own thread" thread

Hello, it's my first time of this forum so sorry if I sound dumb. So I was playing with the flux tweening library and I wanted to tween the radius of my object so it can follow my mouse smoothly but when the radius go from -3 to 3 the tweening go the other way around. I understand that it's because ...