Hello there
I am currently making a game with a calculator inside it and need some help on the following things
Question 1
I need help making a calculator interface that looks like the apple calculator screen. I tried to make one out of barriers but I’m not good at that kind of stuff so I need help with that
The things needed for it are
Hehe, we’re in for a treat aren’t we.
Well, all of the other calculator guides are pretty complicated, but this has become super easy because of text operations.
First off, we just have the players input what they want with those buttons. Then, we run order of operations, you know those, right?
We detect if the player entered a multiplication sign, and where, and then take the part before it and the part after it and multiply it, simplifing this equation. We then repeat the process until we’re fully simplified and have our answer.
Sorry for making it sound that easy, it’s not, but I don’t have a ton of time so I’m just stating a brief explanation, I can make you one later this week perchance.
This sounds like a great game, but making a calculator isn’t simple at all. I’ll also try making a calculator, but it won’t be that good. The backspace button would be taking away the previous digit(property) and the clear button would have to reset everything to its previous state.
I’m on for the tiniest bit of time, so I have some advice:
Make sure you have enough space for enough properties. Provided that you’re going to make some random sum that take 100000(exaggeration) numbers to make… welp… you’re going to need properties.
I’m going to go experiment since I have a bit of time.
One question: Are you only going to have 2 units adding/subtracting/dividing/etc.?
I don’t think I have time to exactly make the system, but I have some ideas.
For one, you might want to have the player enter the number of digits they want to have first. That way, you don’t have to keep track of every single number that the player inputs. This way, it’ll be easier for you to code. You can use triggers/buttons and counters to do this, and connect the counter to a property so that the counter updates the property. I have an idea with the other blocks, and that includes having to figure out how exactly you want to multiply/divide/add/subtract Unit 2 from Unit 1. Sorry, I can’t help for now…