I want to close the script, i am currently in and want to open a new script. This is simply what i want to do.is there some specific reason you need to use dofile()?
Search found 31 matches
- Wed Oct 12, 2011 10:15 am
- Forum: Support and Development
- Topic: Using dofile() ?
- Replies: 24
- Views: 14014
Re: Using dofile() ?
- Tue Oct 11, 2011 1:32 pm
- Forum: Support and Development
- Topic: Particle effects editor?
- Replies: 17
- Views: 34288
Re: Particle effects editor?
Very, very nice tool! Realy good work!!!
How can i use it in my code?
should i include my saved file from this tool in my script or what must i do if i want to run it?
Thanks in advance^^.
How can i use it in my code?
should i include my saved file from this tool in my script or what must i do if i want to run it?
Thanks in advance^^.
- Sat Oct 08, 2011 3:20 pm
- Forum: Support and Development
- Topic: Using dofile() ?
- Replies: 24
- Views: 14014
Re: Using dofile() ?
the file is in the write directory, where the main.lua is, too.
But finally it doesn´t work.
Sorry for getting on your nervs
But finally it doesn´t work.
Sorry for getting on your nervs
- Sat Oct 08, 2011 2:50 pm
- Forum: Support and Development
- Topic: Using dofile() ?
- Replies: 24
- Views: 14014
Re: Using dofile() ?
Oh yeah, you shouldn't use dofile(). While require is usually what you need, in exceptional cases you will want to use love.filesystem.load, like this: local func = love.filesystem.load("somefile.lua") if func then -- no syntax errors func() end I did like you´ve said but it don´t work. N...
- Sat Oct 08, 2011 8:28 am
- Forum: Support and Development
- Topic: Using dofile() ?
- Replies: 24
- Views: 14014
Re: Using dofile() ?
is it possible that i have to give the full path, when i want to load a data with dofile(). For me, dofile("file.lua") doesn´t work, it says: "no such file or directory". Here´s my code: function load.love() love.graphics.setMode(800, 600, false, false, 0) end function love.updat...
- Sat Oct 08, 2011 8:04 am
- Forum: Support and Development
- Topic: Using dofile() ?
- Replies: 24
- Views: 14014
Using dofile() ?
Hi community,
is it possible to use dofile() to load AND run .lua files in LUA, or is there another possibility to load and run lua files?
Thanks in advance
is it possible to use dofile() to load AND run .lua files in LUA, or is there another possibility to load and run lua files?
Thanks in advance
- Fri Oct 07, 2011 7:50 am
- Forum: Support and Development
- Topic: Performance questions
- Replies: 41
- Views: 14214
Re: Performance questions
I use LÖVE 0.7.2, the newest version i guess^^.Are you using LÖVE 0.5.0?
- Thu Oct 06, 2011 12:06 pm
- Forum: Support and Development
- Topic: Performance questions
- Replies: 41
- Views: 14214
Re: Performance questions
The easiest way is like : local Timer0 = 0 local SOMENUMBER = 1 function love.load(dt) Timer0 = Timer0+dt if Timer0 > SOMENUMBER then --do things here Timer0 = 0 end end this way you have a somewhat constant update every 1(SOMENUMBER) second :D Unfortunately this doesn´t work for me. :( But thanks ...
- Wed Oct 05, 2011 3:41 pm
- Forum: Support and Development
- Topic: Performance questions
- Replies: 41
- Views: 14214
Re: Performance questions
I have another question: How can i generate a constant framerate in my programs? Somenone said it´s good to use love.timer.step() others say that it´s better multiplie all counters with dt. And i think there are a lot of other possibilities...:) Do you know a good and testet way to make a constante ...
- Wed Oct 05, 2011 2:22 pm
- Forum: Support and Development
- Topic: Performance questions
- Replies: 41
- Views: 14214
Re: Performance questions
Yes, i already know.
But it didn´t worked when i do the main.lua in the top-level.
But it didn´t worked when i do the main.lua in the top-level.