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.
You know, like a sane person who doesn't have a hole in their head would do.
adamac15 wrote:
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?
What you're likely doing is replacing the values from battle with the stats values. Make sure to add the two together first :)
swivelgames wrote:
I'm so confused D:
I think he realized he was missing something obvious, and felt silly about it.
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?
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?
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.
» Go to Registration page
» Go to Registration page
Page 1 of 1
» 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
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
Advertisement