Search found 18 matches

by Oblivion_123
Fri Dec 15, 2017 9:16 am
Forum: Support and Development
Topic: Saving a game
Replies: 6
Views: 6196

Re: Saving a game

I attached the lib you need. Obviously adapt the code to what you need, I tried to make it as easy as possible. Basically you create a table and populate it with the data you want and then you save it. When loading it, you check if the saving file already exists and if it doesn't just create it wit...
by Oblivion_123
Thu Dec 14, 2017 9:53 pm
Forum: Support and Development
Topic: Saving a game
Replies: 6
Views: 6196

Re: Saving a game

I made something similar a while ago using a library called ser. It's not that hard. If you just want to save a score it's even easier. You just want to write that number in the file. So create a file, write the number on the file and save it. Then read that number every time you start the game and...
by Oblivion_123
Thu Dec 14, 2017 7:14 pm
Forum: Support and Development
Topic: Saving a game
Replies: 6
Views: 6196

Saving a game

Hello,

Can someone help me out onto coding a button in which you would click on the menu to save your score in a game using tserial?

Any help is much appreciated,

Thanks
by Oblivion_123
Sat May 07, 2016 8:07 pm
Forum: Support and Development
Topic: Random Timer
Replies: 2
Views: 2090

Re: Random Timer

Cheers dude, thanks a lot for the help!
by Oblivion_123
Sat May 07, 2016 5:52 pm
Forum: Support and Development
Topic: Random Timer
Replies: 2
Views: 2090

Random Timer

I want to make a timer so that every minute or so it could do something else. What is it that I want it to do is irrelevant however, I would like to know if it is possible to make a timer that could do something when the timer ends.

Any help is much appreciated,
Thanks!
by Oblivion_123
Mon Nov 23, 2015 5:47 pm
Forum: Support and Development
Topic: Picking a value from a table
Replies: 12
Views: 5973

Re: Picking a value from a table

Ok, but that still doesn't answer my question, is there a way that I can use this info to figure out the colour of box. Do you know any way?
by Oblivion_123
Sun Nov 22, 2015 6:39 pm
Forum: Support and Development
Topic: Picking a value from a table
Replies: 12
Views: 5973

Re: Picking a value from a table

Yep, boxes[1].x works and returns -20, 80, and so on whenever I change the 1 to a 2 or to a 3. So... is my pickAColour() function broken, if so, do you know what's wrong with it? function pickAColour() number = love.math.random(1,100) reds = { 255, 0, 0 } blues = { 0, 0, 255 } yellows = { 255, 255, ...
by Oblivion_123
Sun Nov 22, 2015 6:14 pm
Forum: Support and Development
Topic: Picking a value from a table
Replies: 12
Views: 5973

Re: Picking a value from a table

Yes, I noticed that and I changed i tried it with boxes[6].colour and that's what returned nil. Lol.

Any ideas?
by Oblivion_123
Sun Nov 22, 2015 5:31 pm
Forum: Support and Development
Topic: Picking a value from a table
Replies: 12
Views: 5973

Re: Picking a value from a table

It only returns nil
by Oblivion_123
Sun Nov 22, 2015 5:20 pm
Forum: Support and Development
Topic: Picking a value from a table
Replies: 12
Views: 5973

Picking a value from a table

Hi, I am currently working on a game and I have come to a dead end in my ability to work, so I need some help from the community. In my game I have made a table, which then inserts values into it. The table gets created, and with item 1 it had 5 characteristic, same with item 2, 3, 4 and so on. For ...