Hey everybody. My name is Adam Counts and i am somewhat a beginner at making calculator games. Ive made 6 games and working on my 7th. Im trying to make it with money, level ups, and stats. The problem is that the money and EXP. doesnt add up. Every time you start a new battle and win, it goes to whatever you won and doesnt add it on. What do you think i should do
I think you should take the stored value, add what they won, and then store the result.

You know, like a sane person who doesn't have a hole in their head would do.
Hey everybody. My name is Adam Counts and i am somewhat a beginner at making calculator games. Ive made 6 games and working on my 7th. Im trying to make it with money, level ups, and stats. The problem is that the money and EXP. doesnt add up. Every time you start a new battle and win, it goes to whatever you won and doesnt add it on. What do you think i should do
Welcome to Cemetech; I hope you enjoy your stay. Anyway, Kllrnohj's admittedly-sarcastic answer is right. I assume you're storing the stats in a list? Then you should be adding the new values and re-storing in the list. Can you use SourceCoder 2 to give us some code of the section in question?
I dont have a cable yet so i cant upload any code
What you're likely doing is replacing the values from battle with the stats values. Make sure to add the two together first :)
I withdraw this topic
I withdraw this topic

Withdrawal denied.
I'm so confused D:
swivelgames wrote:
I'm so confused D:
I think he realized he was missing something obvious, and felt silly about it.
yea
swivelgames wrote:
I'm so confused D:

So... par for the course then?
Ok, next:

Im doing this special battle and i want 20 people to fight in one.

You start out with 2000 health and each opponent has 100 and you have to survive them all.

But heres the thing, do you use a variable for each person or what?
No, you would use one list for the player and one for the current enemy. Using one list for all of the enemies and then setting separately for each one will save archive space and result in a quicker load time.

Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

»
» All times are UTC - 5 Hours

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum