Search found 31 matches

by ntpspe
Mon Aug 08, 2011 1:51 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: main menu questions (buttons, loading other .lua files e

Oh, shit, I forgot to warn you against that method. It is evil, please don't use it. It runs "game.lua" every time you start a new game. Don't worry, i'm using: function love.load() newgame = love.filesystem.load("newgame.lua") end [ALL the rest of the code for buttons and that] function startanewg...
by ntpspe
Mon Aug 08, 2011 1:44 pm
Forum: Support and Development
Topic: [SOLVED]Displaying result for "love.filesystem.exists"
Replies: 13
Views: 1531

Re: Displaying result for "love.filesystem.exists"

I spoke the truth. I realise now that it might come across as a bit harsh. For that, I apologise. Yes I know it's the truth, your posts on this and that other topic just sound like "You're an idiot and know nothing, so you can't do it" some of the time :/ True. However, that does not mean we are ha...
by ntpspe
Mon Aug 08, 2011 1:19 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: main menu questions (buttons, loading other .lua files e

Thanks Taehl :) I managed to do that last night and it all works fine :) @Robin yeah, Well I've managed to get button detection working by creating 4 variables, x1, x2, y1 and y2, which set the boundary for the 200x100 button. So basically, function love.mousepressed(x ,y ,button) if button == "l" a...
by ntpspe
Mon Aug 08, 2011 1:14 pm
Forum: Support and Development
Topic: [SOLVED]Displaying result for "love.filesystem.exists"
Replies: 13
Views: 1531

Re: Displaying result for "love.filesystem.exists"

That last example code you gave is not even nearly correct Lua. You're very... critical. If you get stuck, many friendly people are ready to help you at the forums So much for that... A. I'm using this as a learning project, so of course I'm gonna make mistakes and ask stupid questions, and that's ...
by ntpspe
Mon Aug 08, 2011 3:40 am
Forum: Support and Development
Topic: [SOLVED]Displaying result for "love.filesystem.exists"
Replies: 13
Views: 1531

Re: Displaying result for "love.filesystem.exists"

Nice, thank you very much for your help :) On another note (kinda going away from the topic, but still relevant) Is there a way to get "love.filesystem.write" to write data to a specific line/column of the file? For example, in the conf.lua there's " t.screen.fullscreen = false -- Enable fullscreen ...
by ntpspe
Mon Aug 08, 2011 2:54 am
Forum: Support and Development
Topic: [SOLVED]Displaying result for "love.filesystem.exists"
Replies: 13
Views: 1531

Re: Displaying result for "love.filesystem.exists"

Ah I see using "tostring" worked perfectly and I can just do "love.graphics.print("blah"..tostring(config)" now :).

So am I correct in assuming by putting "tostring" makes the boolean variable a string variable for that print statement?
by ntpspe
Mon Aug 08, 2011 1:02 am
Forum: Support and Development
Topic: [SOLVED]Displaying result for "love.filesystem.exists"
Replies: 13
Views: 1531

[SOLVED]Displaying result for "love.filesystem.exists"

Hello everyone. I'm wanting to see if the conf.lua file is stored in the correct directory for editing, so: I've used config = love.filesystem.exists( "conf.lua" ) To check if it's there. To display the result, I tried love.graphics.print("Is the config there?: " .. config, 0, 80, 0) But that's givi...
by ntpspe
Sun Aug 07, 2011 10:32 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: main menu questions (buttons, loading other .lua files e

I understand how to do it, just thought it'd help if there were a tutorial on it :) And yeah, I'm still in the learning process, hence why I chose LOVE over SDL or Irrlicht or something ;) Everyone's gotta start somewhere, and I'm using LOVE as my learning project. I have coded C++ applications in t...
by ntpspe
Sun Aug 07, 2011 9:53 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: main menu questions (buttons, loading other .lua files e

Sounds like you're setting the fps variable in love.load() or in the global scope. Try putting that bit of code in love.update(). Yeah I was doing, thanks, i'll move it now and give it a shot :) It isn't as easy as "just do this" unless you want to download something and use in your project. To do ...
by ntpspe
Sun Aug 07, 2011 8:57 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: main menu questions (buttons, loading other .lua files e

PS: I think someone should do a button tutorial in the wiki :P