Search found 4 matches

by SamKablam
Tue Oct 20, 2009 6:35 pm
Forum: Support and Development
Topic: Inputting a name
Replies: 7
Views: 3984

Re: Inputting a name

Thanks! I just figured it out as you posted this. Ok, so now that the player can enter their name, how do you get the game to continue and display new text? I'm still trying to figure out how to trigger certain functions to happen at certain times, rather than constantly such as with Draw and KeyPre...
by SamKablam
Tue Oct 20, 2009 6:24 pm
Forum: Support and Development
Topic: Inputting a name
Replies: 7
Views: 3984

Re: Inputting a name

Ok, so it doesn't get an error immediately. However, when I press a key, I get an error saying "attempt to concatenate (wtf does that mean?) global 'Name' (a nil value). So what's wrong, can I get it to display the name as the player is typing it? function load() defaultfont = love.graphics.new...
by SamKablam
Tue Oct 20, 2009 6:10 pm
Forum: Support and Development
Topic: Inputting a name
Replies: 7
Views: 3984

Re: Inputting a name

Ok, I tried removing the loop, replacing it with what you wrote, and then having the draw function type the Name variable, but all I got was an error. Here's what I have now: function load() defaultfont = love.graphics.newFont(love.default_font, 14); fontfile = love.graphics.newFont("LOTR.TTF&q...
by SamKablam
Tue Oct 20, 2009 5:45 pm
Forum: Support and Development
Topic: Inputting a name
Replies: 7
Views: 3984

Inputting a name

Hello! I'm new to LOVE LUA and I'm trying to make my first project. It's just going to be a simple text-based adventure and I wanted to start it off with the player inputting their name. So far, I'm having trouble figuring out how to do this, and when the function should be called. So far, it looks ...