Search found 14 matches

by DGM
Sun Mar 25, 2018 8:20 pm
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 1777

Re: Love2d selectively refusing to recognize my functions

Okay, I think I'm getting it now. Thanks, guys.
by DGM
Fri Mar 23, 2018 9:25 am
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 1777

Re: Love2d selectively refusing to recognize my functions

You're not storing the value as timepiece.time, but as a local object returned by timepiece:create. One solution that would work would be to call the :increment and :draw functions of timepiece not with a colon, but with a dot, and to explicitly pass in t1; that would work. I'm definitely missing s...
by DGM
Tue Mar 20, 2018 1:35 pm
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 1777

Re: Love2d selectively refusing to recognize my functions

You seem to be wanting to create a class, but have no functionality to let your object inherit the class's functions. I was working my way towards that, yes. There are a bunch of different ways to go about making a class, this is probably the worst of them all. Fair enough, but right now I'm just t...
by DGM
Tue Mar 20, 2018 7:01 am
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 1777

Love2d selectively refusing to recognize my functions

Greetings all, I have some simple programming experience but am new to Lua and Love2d. I created a simple counting program to get familiar with the basics. I made 3 functions: timepiece:create () - sets a counter, called in the load function. timepiece:increment () - adds 1 to the counter, called in...