Search found 147 matches

by TurtleP
Sat Feb 09, 2013 7:49 pm
Forum: Libraries and Tools
Topic: toboolean function
Replies: 6
Views: 2229

Re: toboolean function

Sorry for the harshness: Your code: function toboolean(value) if type(value) == "string" then if value == "true" then return true else return false end elseif type(value) == "number" then if value == 1 then return true elseif value == 0 then return false else return nil end end end Better code: fun...
by TurtleP
Sun Feb 03, 2013 3:04 pm
Forum: General
Topic: Graphics Editor of Choice?
Replies: 42
Views: 13855

Re: Graphics Editor of Choice?

I used to use GIMP, until it decided to hate my computer and not work. I switched to Paint.NET. Not sure if it's windows only, but I love PDN.
by TurtleP
Sun Feb 03, 2013 3:07 am
Forum: Libraries and Tools
Topic: toboolean function
Replies: 6
Views: 2229

toboolean function

Hey guys, Not sure if anyone has done this before, but I made one. Tired of having saved boolean to a text file and then need that boolean for your game once it loads? Well, toboolean does what it says, turns the value into a boolean! :ultraglee: I hope you guys enjoy this. You don't have to credit ...
by TurtleP
Sun Dec 30, 2012 10:43 pm
Forum: Support and Development
Topic: Skip File in Enumeration?
Replies: 2
Views: 348

Re: Skip File in Enumeration?

You could store the map in a different folder, or you could remove the string from the table by looping through it backwards, checking to see if it's the string to remove, and if it is, using table.remove. maps = love.filesystem.enumerate("maps/") for i = #maps, 1, -1 do if maps[i] == "Board the Pl...
by TurtleP
Sun Dec 30, 2012 3:01 am
Forum: Support and Development
Topic: Skip File in Enumeration?
Replies: 2
Views: 348

Skip File in Enumeration?

Hello all, In my game, there are mappacks that come with the game, and I don't want users to be able to select a certain mappack from the selection menu. I tried the following: if not love.filesystem.isFile("maps/Board the Platforms") then mappackstable = love.filesystem.enumerate("maps/") end But t...
by TurtleP
Tue Dec 25, 2012 4:12 pm
Forum: Support and Development
Topic: Game "Achievements" not working
Replies: 11
Views: 4201

Re: Game "Achievements" not working

Robin wrote:I made an edit to my post. It has the solution. :)
Thanks! I can't believe I didn't see that. I feel stupid. :|
by TurtleP
Tue Dec 25, 2012 3:42 pm
Forum: Support and Development
Topic: Game "Achievements" not working
Replies: 11
Views: 4201

Re: Game "Achievements" not working

I get an error: (when clicking "play") Error: Classes/achievement.lua:21: attempt to perform arithmetic on field 'transparent' (a nil value) stack traceback: Classes/achievement.lua:21: in function 'update' States/game.lua:38: in function 'conditions' States/game.lua:59: in function 'game_update' m...
by TurtleP
Tue Dec 25, 2012 3:32 pm
Forum: Support and Development
Topic: Game "Achievements" not working
Replies: 11
Views: 4201

Re: Game "Achievements" not working

https://dl.dropbox.com/u/97639347/LOVE% ... /game.love

Just let me know when you've downloaded it.
by TurtleP
Tue Dec 25, 2012 4:29 am
Forum: Support and Development
Topic: Game "Achievements" not working
Replies: 11
Views: 4201

Re: Game "Achievements" not working

Well, my friend figured out how to make them work, so it's all good! (The guy who made the achivements originally for my game, not the one coffee provided) There's a problem though.. https://dl.dropbox.com/u/97639347/LOVE%20Games/Turtle%20Puzzles%20Developer%20Beta%202.0/States/code.txt Each time it...
by TurtleP
Sun Dec 23, 2012 2:57 pm
Forum: Support and Development
Topic: Game "Achievements" not working
Replies: 11
Views: 4201

Re: Game "Achievements" not working

Regardless of the fact that the conditions never change, all your tests are only executed once, namely when the ach table is created. Instead of "deaths == 10", you probably want "function() return deaths == 10 end" and then execute that to test, because currently all contain a constant false. Well...