Help Creating a Score Counter and saving Highscore

@Alex

I remember when I first started programming and those tutorials might be good but to a newbie they are incredibly complicated to understand. That’s why he doesn’t want links, he’s probably looked at them already, can’t figure it out and that’s why he’s asking people like us for help.

And when you do give help keep it simple and break everything down into easy steps, clearly saying where they have to put everything and what the parts do.

Lather, rinse, repeat…

My intent in posting that tutorial was to get a more focused conversation started from one sheet of music. We all want to help, and the available tutorials are supposed to be helping new developers who require assistance. If you’re saying they aren’t useful, then learning about how they can be made more useful would benefit everyone. If you guys are saying those tutorials are too complicated, it would be good to know how they can be made more simplistic, so they can be improved.

As it is, this tutorial in particular, is one of the more simple ones that have been created. It is using, basically, the same exact methodology that @QuizMaster has used above. The good thing about the tutorial, is that it also teaches new developers about creating modules, and introduces the concept of saving data for later use. These are always valuable skills to have, which is why tutorials are made in the first place.

No offence meant, as I was just trying to provide help to OP.

Well yeah, I get that you were trying to provide help. But the thing is, I don’t know a a whole lot of lua coding, and I am pretty busy some times. So basically I was trying to get the simplest form of that, which Quizmaster has provided. But right now, before I can even see if that works, I have this other small issue that I am figuring out. So when that’s done I will come back to check out all of his code.

If you are so new to Lua that reading a tutorial that pretty simply explains the problem you’re trying to solve, then perhaps you need to drop back and spend some times learning the basics.  This is how learning works.  You can’t be successful in your Organic Chemistry class until you’ve gone through Basic Chemistry. You can’t be successful in Basic Chemistry until you’ve learned the high school basic science classes.  The score tutorial above involves saving files, using functions, display groups, etc. It’s not going to make sense until you under stand variables, flow control (if’s loops, etc.), functions and tables.  People might be able to learn to swim by being thrown int he deep end of the pool, but for programming it’s best to start in the shallow end and work your way up.

Rob

@Alex & @Rob

I agree with your statements to a certain extent.

I spent 6 months trying to learn Java and O.O.P. before I stumbled upon Corona.

I then spent 3 months learning Corona but I learned nothing until I threw myself in the deep end and decided to make the game I wanted to by learning as I went. That’s where the forums are invaluable, I’ve learned 90% of what I know now from kind and patient people like Rob and other people like myself. After 18 months I still have problems with the tutorials from time to time, Rob can vouch for that.

Alex you have just pointed out what the problem for new starters is yourself, there is a lot of information in the tutorial, stack overload!

Look how I explained creating and saving a high score, just the absolute minimum to start off with to get the job done.

Step1 - create a text file, read the text file, save it to the documents directory.

Step 2 - load the high score table

Step 3 - Check to see if your score is higher than the highScore and save it

Simple but effective.

Now when Spid3rtech has got his head around the absolute basics as I gave him he can then understand better ways to do it like have a table to hold the top 10 scores, hence a json file, hence Rob’s loadsave.lua.

When I first started with Corona me and Rob were going back and forth with his loadsave.lua module, I spent days trying to make it work and it is a simple module to work with, good work by the way Rob.

Tiny steps.

I agree with what QuizMaster has to say… i wasn’t learning anything until i threw my self in the deep end… well there’s different people in this world. Hey @QuizMaster have you released your game yet? Im pretty exited to play it.!

So that’s what your busy with :stuck_out_tongue: Sorry for taking up your time, and thanks! For letting me take up your time xD

Hi Sonic, nice to hear from you again.

I’m a week or two away from completing, I wanted it done by my birthday so I could celebrate but that’s next Wednesday.

I’ve been working on it every single day since March last year!

Spid3rtech, happy to help as long as it’s not too much!

I hope it isn’t! Thanks with everything so far.