Search found 16 matches

by xThomas
Mon Oct 16, 2017 2:42 am
Forum: Support and Development
Topic: how do I load lua files?
Replies: 4
Views: 2963

Re: how do I load lua files?

Thx guys it works now :) ps I did check the wiki, I am just extraordinarily bad at understanding documentation
by xThomas
Mon Oct 16, 2017 1:18 am
Forum: Support and Development
Topic: how do I load lua files?
Replies: 4
Views: 2963

how do I load lua files?

I know its a dumb question but I've been looking it up and don't understand how to do this :x I've tried love.filesystem.load("button.lua()") love.filesystem.load("button.lua") love.filesystem.load("button.lua"()) love.filesystem.load(button.lua) love.filesystem.load(&q...
by xThomas
Sun Oct 15, 2017 4:22 am
Forum: General
Topic: logic to an rpg character speaking speech?
Replies: 5
Views: 3888

Re: logic to an rpg character speaking speech?

Here's one I made using coroutines. This is actually the first thing I've ever used them for :D function love.load() co = coroutine.create(f) end function f(str, rate) local StartTime = love.timer.getTime() local i,nexti = 0; local rate = rate or 10 while i < #str do nexti = math.floor((love.timer.g...
by xThomas
Sat Oct 14, 2017 11:15 pm
Forum: General
Topic: logic to an rpg character speaking speech?
Replies: 5
Views: 3888

Re: logic to an rpg character speaking speech?

Ahh, that's pretty cool :) I actually explained my issue pretty badly though. Here's what I was trying to do was making RPG text that draws a string, one character at a time. Like a typewriter. I tried making more code but it caused a stack overflow. right now Im trying and failing to use coroutines...
by xThomas
Sat Oct 14, 2017 6:31 am
Forum: General
Topic: logic to an rpg character speaking speech?
Replies: 5
Views: 3888

logic to an rpg character speaking speech?

so I'm trying to make an rpg character speech function. I'm wondering how many ways there are to do this, and what you would do I had a working function but I deleted it because it sucked so much. I'm trying to make another one but for now what would you suggest? Bonus: Another thing I might try is ...