Search found 31 matches

by ntpspe
Wed Aug 10, 2011 11:09 pm
Forum: Support and Development
Topic: [SOLVED]Surely there's a better way of storing[...]
Replies: 10
Views: 1535

Re: Surely there's a better way of storing my random variabl

Aah I understand now, thanks. So is it fair to say 'for' is similar to 'while' in a way? (of course 'while' only does it whilst the parameters are met).

Now onto a more complex thinymajig, is there a way to make is so one of the 3 numbers (0,1,2) is more likely to appear? and when I add more numbers?
by ntpspe
Wed Aug 10, 2011 10:58 pm
Forum: Support and Development
Topic: [SOLVED]Surely there's a better way of storing[...]
Replies: 10
Views: 1535

Re: Surely there's a better way of storing my random variabl

Haha definately a better method :P Thank you kind sir!

As another request, could you please explain this part:

Code: Select all

for i=1, 420 do
  table.insert(randoms,math.random(0,2))
I know it's probably simple, but I've been having trouble with 'for' statements
by ntpspe
Wed Aug 10, 2011 10:23 pm
Forum: Support and Development
Topic: [SOLVED]Surely there's a better way of storing[...]
Replies: 10
Views: 1535

[SOLVED]Surely there's a better way of storing[...]

Hey guys, I've managed to create 21 variables that are different each time my game is loaded, which is perfect sure, but the problem lies here. This is how i've stored them 21 variables (and aquired them) math.randomseed(os.time()) aa = math.random(0,2) ab = math.random(0,2) ac = math.random(0,2) ad...
by ntpspe
Wed Aug 10, 2011 6:18 pm
Forum: General
Topic: Framework or engine?
Replies: 24
Views: 4167

Re: Framework or engine?

Yeah that's what I thought :P
Therefore should'nt the title of the website be changed to "LOVE - Free 2D Game Framework" ?

A. It would make things clearer
B. It's what it is :P
by ntpspe
Wed Aug 10, 2011 5:09 pm
Forum: General
Topic: Framework or engine?
Replies: 24
Views: 4167

Re: Framework or engine?

Yeah, personally I'd rather say I'm working with a Framework than an engine. If I were using an engine it makes it sound... more lazy, like I can't be bothered coding something so I'll get an engine to do it all for me xD
by ntpspe
Wed Aug 10, 2011 4:48 pm
Forum: General
Topic: Framework or engine?
Replies: 24
Views: 4167

Framework or engine?

Hey guys, First of all I would like to say I am really enjoying working with LOVE2D, it's a brilliant tool to learn programming, and I'm doing quite well with my projects now. I just have a question, a really basic question, but the website kinda presents two different opinions. Title of the website...
by ntpspe
Mon Aug 08, 2011 2:58 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: [SOLVED]main menu questions (buttons, loading other)...

Oh I understand now :) As for the problem, I think I accidentally made some kind of loop that was repeatedly setting the font to size 20, which must have been using up the system resources or something, I'm not sure, but I ended up replacing my text with images anyway, and just using the default fon...
by ntpspe
Mon Aug 08, 2011 2:25 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: [SOLVED]main menu questions (buttons, loading other)...

Ah I see. But I want 'newgame.lua' to be loaded every time the game is loaded don't I? Also, on a side note, whenever I use [love.graphics.newFont] (and by whenever I mean it was placed in love.load() to load the font I wanted at the start of the game, but I also tried it elsewhere) The fps drops to...
by ntpspe
Mon Aug 08, 2011 2:08 pm
Forum: Support and Development
Topic: [SOLVED]main menu questions (buttons, loading other)...
Replies: 17
Views: 3982

Re: [SOLVED]main menu questions (buttons, loading other)...

That is less evil, I'll give you that. Still, evil, because it still runs "newgame.lua" every time you start a new game. Yeah, but isn't that why we load all the images in [love.load()] and then draw them elsewhere, rather than loading them at every function that needs them? I thought the same prin...
by ntpspe
Mon Aug 08, 2011 1:55 pm
Forum: Support and Development
Topic: [SOLVED]Displaying result for "love.filesystem.exists"
Replies: 13
Views: 1531

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

It's perfectly fine. At the end of the day you know what your doing and I don't as much, so any advice you give is appreciated and taken in. I understand 'noobs' can be a problem, especially one's that come on the forums asking every question under the sun, and then end up not doing they're project ...