Search found 39 matches

by BoopDeePoop
Mon Jul 21, 2014 9:46 pm
Forum: Support and Development
Topic: [Solved]Loading variables isn't working with filesystem
Replies: 5
Views: 4301

Re: Loading variables isn't working with filesystem

DaedalusYoung wrote:Because colons is not proper syntax to define variables.
That's strange then. I've seen other save files like this using colons and they worked. Idk. Maybe they did it a different way. At least I think I saw that. Idk, well anyway thanks for the help!
by BoopDeePoop
Mon Jul 21, 2014 9:28 pm
Forum: Support and Development
Topic: [Solved]Loading variables isn't working with filesystem
Replies: 5
Views: 4301

Re: Loading variables isn't working with filesystem

Joemag wrote:Just replace ":" with "=".
It should be saved as:

Code: Select all

highscore=0
.
That shouldn't change anything should it? I was printing a string to the file with a variable?

edit:
wtf it worked. why don't colons work?
by BoopDeePoop
Mon Jul 21, 2014 8:27 pm
Forum: Support and Development
Topic: [Solved]Loading variables isn't working with filesystem
Replies: 5
Views: 4301

[Solved]Loading variables isn't working with filesystem

I'm trying to save a highscore variable using love.filesystem and when I do this, I can save the file and the information inside it. I just can't figure out how to load the data properly? This is the error I get: saving.lua:6: Syntax error: save.lua:1: '<name>' expected near '0' This gets written in...
by BoopDeePoop
Thu Jun 12, 2014 4:40 am
Forum: Support and Development
Topic: Making all buttons spawn with love.load()
Replies: 3
Views: 2985

Re: Making all buttons spawn with love.load()

Could I see an example of that? I'm still trying to grasp onto coding. I'm having lots of trouble but slowly learning stuff.
by BoopDeePoop
Wed Jun 11, 2014 11:37 pm
Forum: Support and Development
Topic: Making all buttons spawn with love.load()
Replies: 3
Views: 2985

Making all buttons spawn with love.load()

I'm curious if it's possible to make all of the buttons in my game spawn when love.load() is ran. I have buttons in gamestates other than menu which is what you start in upon loading the game. At the moment this works: function button_IsSpawned() if gamestate == "settingstate" then if b_sp...
by BoopDeePoop
Sat Jun 07, 2014 4:51 am
Forum: Support and Development
Topic: How to use values from conf.lua?
Replies: 2
Views: 2021

How to use values from conf.lua?

I'm trying to check whether or not vsync is enabled and I get this error: "attempt to index global 't' (a nil value) if t.window.vsync == true then love.graphics.print("vSync: Enabled",0,20) elseif t.window.vsync == false then love.graphics.print("vSync: Disabled",0,20) end ...
by BoopDeePoop
Sat Jun 07, 2014 4:48 am
Forum: Support and Development
Topic: Need to clear the screen
Replies: 4
Views: 3060

Re: Need to clear the screen

josefnpat wrote:Not sure what you're trying to do, but if you want to "clear the screen" take a look at love.graphics.clear.
Think he means removing all images and graphics from the screen.
by BoopDeePoop
Sun May 25, 2014 4:15 pm
Forum: Support and Development
Topic: table.remove
Replies: 5
Views: 5284

Re: table.remove

Well we'll need to see your code to see what the problem is. Table.remove is like this:

OnCollision
table.remove(tableName)

This will remove all instances of that table though. To just remove the object you want to, it's
table.remove(tableName,i)
by BoopDeePoop
Wed May 07, 2014 2:20 am
Forum: Support and Development
Topic: I got this Error what do I do?
Replies: 4
Views: 3039

Re: I got this Error what do I do?

I believe it's just trying to say that it can't find entities.lua. What does your line 2 look like?
by BoopDeePoop
Thu Apr 24, 2014 1:49 am
Forum: General
Topic: Setting Icon
Replies: 14
Views: 10695

Re: Setting Icon

A bit of a necropost, but I remembered I forgot to post this. Window icons are displayed less and less, fewer desktop environments show it on the window decorations, and docks and menus etc tend to prefer using application icons over window icons. So some of the behavior you describe seems to be re...