Search found 8 matches

by Bransonn
Fri Sep 20, 2013 11:37 pm
Forum: Support and Development
Topic: Restarting my game after Saving Variables
Replies: 1
Views: 1225

Restarting my game after Saving Variables

I've been working on a way for my game to save the x and y coordinates of my player in a state. I do this so if I leave the state/game and come back, the player is right where I left 'em. So the game loads in this order: stateOne --> stateTwo --> stateThree I save the x and y coordinates into files ...
by Bransonn
Thu Sep 05, 2013 8:36 pm
Forum: Support and Development
Topic: Reading a variable from a file using filesystem
Replies: 4
Views: 2267

Re: Reading a variable from a file using filesystem

I tried that last night and got the same error.

I tried it right now, and it works like a charm.

Thanks man.
by Bransonn
Thu Sep 05, 2013 8:07 pm
Forum: Support and Development
Topic: Reading a variable from a file using filesystem
Replies: 4
Views: 2267

Reading a variable from a file using filesystem

Hey guys, I'm currently trying to make a program that will write '12' to 'test.lua', then print a variable that equals the number in the file. For instance, function love.load() number = {} local file = love.filesystem.newFile("testing.lua") love.filesystem.write("testing.lua", &...
by Bransonn
Mon Jun 24, 2013 10:56 pm
Forum: Support and Development
Topic: A Problem loading gamestates
Replies: 5
Views: 3569

Re: A Problem loading gamestates

I'm really sorry.. but I don't understand " states.init function". What is an .init function? Could you possibly link me something so I can better understand this?

I greatly appreciate the help, and I'm very sorry that I'm having trouble understanding it.
by Bransonn
Mon Jun 24, 2013 10:32 pm
Forum: Support and Development
Topic: A Problem loading gamestates
Replies: 5
Views: 3569

Re: A Problem loading gamestates

I'm sorry about my poor wording! I'll give an example. main.lua require ('start') require ('menu') function love.load() state = "start" if state == "start" then start.load() end if state == "menu" then menu.load() end function love.update(dt) if state == "start&quo...
by Bransonn
Mon Jun 24, 2013 10:01 pm
Forum: Support and Development
Topic: A Problem loading gamestates
Replies: 5
Views: 3569

A Problem loading gamestates

The name in the topic seems like something I should have just searched the forums for. I did, and haven't found any information on my exact problem. I'm making a Tic-Tac-Toe clone. I started to work on a menu system, and it was all working fine and dandy for awhile. But now, for some odd reason, the...
by Bransonn
Sat May 04, 2013 7:25 pm
Forum: Support and Development
Topic: Getting the mouse to click once?
Replies: 2
Views: 3670

Getting the mouse to click once?

I'm currently working on a game, and I want the user to be able to click an "attack" button. Although whenever I use the ' if mouseclick = "l" Kind of deal, it will CONSTANTLY ATTACK. I understand what it's doing, but I'm not sure how to make it so only registers the attack ONCE,...
by Bransonn
Mon Apr 29, 2013 1:15 am
Forum: Games and Creations
Topic: Possession - A roguelike made in LÖVE
Replies: 8
Views: 12794

Re: Possession - A roguelike made in LÖVE

I'm alasqa's friend. I didn't even realize he posted here! I was about to send him this, ha.

Great game man. Thanks for letting us take it apart and learn. Means a lot.