Search found 8 matches

by DGM
Fri Nov 02, 2018 12:05 am
Forum: Support and Development
Topic: [SOLVED] Detecting special characters with love.textinput()
Replies: 3
Views: 381

[SOLVED] Detecting special characters with love.textinput()

Hello, I'm trying to make a simple command-line interface by using the love.textinput(text) function (this is with Love2d version 11.1). I've got text appearing but I can't get the program to recognize when the return key is pressed. I know I can do this with love.keypressed(key) by comparing key to...
by DGM
Thu Sep 27, 2018 2:37 pm
Forum: Support and Development
Topic: [SOLVED] os.rename function causing crash
Replies: 2
Views: 201

[SOLVED] os.rename function causing crash

[smacks forehead]

Right. Moving the string declarations out of the load function fixed it. Thanks.
by DGM
Thu Sep 27, 2018 1:06 pm
Forum: Support and Development
Topic: [SOLVED] os.rename function causing crash
Replies: 2
Views: 201

[SOLVED] os.rename function causing crash

I want to write a utility that creates some files and directories but places them into the same folder as the program rather than into the save directory. After some research I figured the easy way to do this was to create what I wanted in the save folder and then call os.rename to move it where I n...
by DGM
Sun Mar 25, 2018 8:20 pm
Forum: Support and Development
Topic: Love2d selectively refusing to recognize my functions
Replies: 8
Views: 1426

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: 1426

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: 1426

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: 1426

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...